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.
$(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