Xinqi Bao's Git

Makefile: add distclean target
authorQuentin Rameau <[email protected]>
Mon, 30 Apr 2018 14:14:05 +0000 (16:14 +0200)
committerAaron Marcher <[email protected]>
Mon, 30 Apr 2018 14:27:07 +0000 (16:27 +0200)
Makefile

index e046597..c68a271 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -49,6 +49,10 @@ config.h:
 clean:
        rm -f slstatus slstatus.o $(COM:=.o) $(REQ:=.o)
 
+distclean:
+       for os in Linux OpenBSD; do make OS="$$os" clean; done
+       rm -f os.mk
+
 dist:
        rm -rf "slstatus-$(VERSION)"
        mkdir -p "slstatus-$(VERSION)/components"