[comp.sys.ibm.pc] make bug in Turbo C

edski@rover.UUCP (Ed Skinner) (06/17/87)

Using the non-interactive version of make(1) with Turbo C, I encountered a
minor, but annoying bug:  A makefile dependency which has no predecessor is
assumed to be "current."  Other systems assume it to be "not current." The
typical "clean:" dependency is NOT executed on "make clean" in what follows;
------------------------------- example fragment ----------------------------
clean:
        - del *.exe
        - del *.com
----------------------------- end of example fragment ----------------------
To avoid the problem, add an argument to any existent file.  Then, because
there is no file named "clean", the commands will always be done.
-------------------------------- workaround fragment -----------------------
clean:  makefile
        - del *.exe
        - del *.com
---------------------------- end of workaround fragment --------------------

-- 
-------------------------------------------------------------------------------
#include <disclaimer.h> /*{seismo!noao!mcdsun, utzoo!mnetor, ihnp4}!mot!edski*/
Ed Skinner, WB7UTR, Motorola, 2900 S Diablo Way, Tempe Az 85282, (602) 438-3470