anonymous writes: > URL: > <http://savannah.gnu.org/bugs/?51591> > > Summary: Typographical error in manual > Project: make > Submitted by: None > Submitted on: Thu 27 Jul 2017 02:58:59 PM UTC > Severity: 3 - Normal > Item Group: Documentation > Status: None > Privacy: Public > Assigned to: None > Open/Closed: Open > Discussion Lock: Any > Component Version: None > Operating System: Any > Fixed Release: None > Triage Status: None > > _______________________________________________________ > > Details: > > Hello, > > Please check the section at the URL here: > http://www.gnu.org/software/make/manual/make.html#Cleanup > > In the following example: > > .PHONY : clean > clean : > -rm edit $(objects) > > This should read: > > .PHONY : clean > clean : > rm edit $(objects)
This is not a typo. The '-' prefix instructs make to ignore the return code from the command. This allows 'make clean' to be successfully executed when there are no files to delete in the directory. _______________________________________________ Bug-make mailing list Bug-make@gnu.org https://lists.gnu.org/mailman/listinfo/bug-make