Makefile: add distclean target

This commit is contained in:
Quentin Rameau 2018-04-30 16:14:05 +02:00 committed by Aaron Marcher
parent 2ea3d46f13
commit d42870d6ca

View file

@ -49,6 +49,10 @@ config.h:
clean: clean:
rm -f slstatus slstatus.o $(COM:=.o) $(REQ:=.o) 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: dist:
rm -rf "slstatus-$(VERSION)" rm -rf "slstatus-$(VERSION)"
mkdir -p "slstatus-$(VERSION)/components" mkdir -p "slstatus-$(VERSION)/components"