Single-suffix rules
The make command has a set of single-suffix rules to build source files directly into a target file name that does not have a suffix (for example, command files).
Themake command also has rules to change the following source files with a suffix to object files without a suffix:
Command | Description |
---|---|
.C: | From a C++ language source file |
.C\~: | From an SCCS C++ language source file |
.c: | From a C language source file |
.c~: | From an SCCS C language source file |
.sh: | From a shell file |
.sh~: | From an SCCS shell file |
For example, if all of the needed source files are in the current directory, to maintain the cat program, enter:
make cat