From fb34cf86f6388f7f40109aea4b7c466e6cc178c2 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Wed, 3 Jan 2024 12:40:46 -0500 Subject: Makefile: add realclean. --- Makefile | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 9c52c75..beb6221 100644 --- a/Makefile +++ b/Makefile @@ -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 -- cgit v1.2.3