GNU Make 4 · Rules and targets
Write a clean target
Remove build outputs. The leading minus ignores errors, such as files that don't exist.
clean:
-rm -f app *.o
Official GNU Make 4 documentation
GNU Make 4 · Rules and targets
Remove build outputs. The leading minus ignores errors, such as files that don't exist.
clean:
-rm -f app *.o
Official GNU Make 4 documentation
Was this page helpful?