Xinqi Bao's Git

Makefile: add distclean target
[slstatus.git] / 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"