Makefile: add distclean target
authorQuentin Rameau <quinq@fifth.space>
Mon, 30 Apr 2018 14:14:05 +0000 (16:14 +0200)
committerAaron Marcher <me@drkhsh.at>
Mon, 30 Apr 2018 14:27:07 +0000 (16:27 +0200)
Makefile

index e046597689fdb44ebabce2e9c84534eb30494a72..c68a271b46a36c5b9d8dd662be407cd681d37c39 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"