Skip to content

Commit

Permalink
Makefile.include (clean): ignore rm -f failing (e.g., on "core")
Browse files Browse the repository at this point in the history
rm -f can still fail, e.g., if trying to delete a directory.

If there was, say, a directory called "core", a "make clean" would
therefore only try to delete the files listed in the first command but
not proceed with the rest of the cleanup.

"make clean" itself failing may also affect any outside build process
that invokes it.
  • Loading branch information
wpwrak committed Nov 13, 2013
1 parent 497e7fb commit 6db8788
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile.include
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ rm -f $(@:.o=.$$$$)
endef

clean:
rm -f *~ *core core *.srec \
-rm -f *~ *core core *.srec \
*.lst *.map \
*.cprg *.bin *.data contiki*.a *.firmware core-labels.S *.ihex *.ini \
*.ce *.co
Expand Down

0 comments on commit 6db8788

Please sign in to comment.