From adbc19eed2330b9aea3e05b679c84faa8742c6d7 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Sat, 2 Mar 2019 14:32:24 +0100 Subject: [PATCH] build: Provide target distclean. 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 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 89af315..683ea8b 100644 --- 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 -- 2.39.5