Open main menu

CDOT Wiki β

Changes

Make and Makefiles

288 bytes added, 19:17, 20 January 2017
Fake Targets
* dist-clean (or distclean): erases all files not included in the original distribution of the source
* check (or test): tests the software
 
The make command will exit as soon as any command pipeline fails, so fake targets which may non-fatally fail are usually forced to return a success code; for example, to delete files which may or may not exist as part of a "clean" target, code such as this may be used:
 
rm *.o || true
== Examples ==
* [http://matrix.senecacollege.ca/osd600/makefile-examples.tgz A tarball of simple Makefile examples]