]> git.tuebingen.mpg.de Git - lopsub.git/blobdiff - Makefile
build: Provide target distclean.
[lopsub.git] / Makefile
index 427850561fea03bd2426ff364c6c56f84bcbf483..683ea8b270052715717fffb6de1563791afd0a81 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -6,6 +6,8 @@ MAKEFLAGS += -Rr
 ifeq ("$(origin CC)", "default")
         CC := cc
 endif
+.ONESHELL:
+.SHELLFLAGS := -ec
 
 PREFIX ?= /usr/local
 M4 := m4
@@ -107,7 +109,8 @@ install: liblopsub.a lopsub.7
        $(INSTALL) -m 644 lopsub.7 $(PREFIX)/man/man7
 
 clean:
-       $(RM) $(all) $(html) *.o *.man *.lsg.c *.lsg.h \
-               lopsubgen.c config_file.c lopsubgen-stage1 \
+       $(RM) $(all) $(html) *.o *.man
+distclean: clean
+       $(RM) *.lsg.c *.lsg.h lopsubgen.c config_file.c lopsubgen-stage1 \
                lopsub.h lopsub.7 lopsub-suite.5 version.c