]> git.tue.mpg.de Git - lopsub.git/commitdiff
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 89af3155989c81a5ce3adab83ef6f1f6914f14d8..683ea8b270052715717fffb6de1563791afd0a81 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