build: Provide target distclean.
authorAndre Noll <maan@tuebingen.mpg.de>
Sat, 2 Mar 2019 13:32:24 +0000 (14:32 +0100)
committerAndre Noll <maan@tuebingen.mpg.de>
Thu, 14 Mar 2019 13:11:03 +0000 (14:11 +0100)
All software packages should at least provide the "clean" and "distclean"
targets. So far we only supported the former, which removed all generated
files.

This commit adds the distclean target and modifies the clean target
to only remove files generated by the compiler, but not the files
that were generated by lopsubgen.

Makefile

index 89af315..683ea8b 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -109,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