diff options
author | B. Watson <urchlay@slackware.uk> | 2024-01-03 12:40:46 -0500 |
---|---|---|
committer | B. Watson <urchlay@slackware.uk> | 2024-01-03 12:40:46 -0500 |
commit | fb34cf86f6388f7f40109aea4b7c466e6cc178c2 (patch) | |
tree | a3e2c7d36cbfae45fc95d6165e2926cdccdf61c9 /Makefile | |
parent | f365af1acaed41948572ff78df55300d87132e64 (diff) | |
download | hcalc-fb34cf86f6388f7f40109aea4b7c466e6cc178c2.tar.gz |
Makefile: add realclean.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 13 |
1 files changed, 12 insertions, 1 deletions
@@ -25,6 +25,14 @@ MKDIR_P = mkdir -p GZIP = gzip # End of user-ovverideable stuff. No user-serviceable parts below this line. +# Notes: +# - VERSION, version.rst, version.h, and the man page (hcalc.1) are +# generated files, but they're also checked into git. This is to +# prevent a build-time dependency on rst2man. +# - clean does not delete any files that are in git. +# - realclean is a maintainer-only target, deletes generated files that are +# in git. + PROJ = hcalc VERSION = 1.2u1 MANPAGE = $(PROJ).1 @@ -71,6 +79,9 @@ $(MANPAGE): $(PROJ).rst version.rst clean: rm -f *.o *.d *~ \#* $(PROJ) core +realclean: clean + rm -f VERSION version.h version.rst $(MANPAGE) + install: all $(MKDIR_P) $(DESTDIR)$(BINDIR) $(DESTDIR)$(SHAREDIR) \ $(DESTDIR)$(MAN1DIR) $(DESTDIR)$(DOCDIR) $(DESTDIR)$(DESKTOPDIR) @@ -84,4 +95,4 @@ install: all done $(GZIP) -9f $(DESTDIR)$(MAN1DIR)/$(MANPAGE) -.PHONY: all clean install +.PHONY: all clean realclean install |