Specifications
Saturn The PSYMAKE Utility 15-3
Psy-Q Development System
Contents of the Makefile
The Makefile consists of a series of commands governed by explicit rules
(dependencies) and implicit rules. When a target file needs to be built, PSYMAKE
will first search for a dependency rule for that specific file. If none can be found
PSYMAKE will use an implicit rule to build the target file.
Dependencies:
A dependency is constructed as follows :
targetfile
: [
sourcefiles
]
[
command
...
command
]
• The first line instructs PSYMAKE that the file "targetfile" depends on the files
listed as "sourcefiles".
• If any of the source files are dated later than the target file or the target file does
not exist, PSYMAKE will issue the commands that follow in order to rebuild the
target file.
• If no source files are specified the target file will always be rebuilt.
• If any of the source files do not exist, PSYMAKE will attempt to build them first
before issuing the commands to build the current target file. If PSYMAKE
cannot find any rules defining how to build a required file, it will stop and report
an error.
The target file name must start in the left hand column. The commands to be
executed in order to build the target must all be preceded by white space (either
space or tab characters). The list of commands ends at the next line encountered with
a character in the leftmost column.