aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2024-01-03 12:40:46 -0500
committerB. Watson <urchlay@slackware.uk>2024-01-03 12:40:46 -0500
commitfb34cf86f6388f7f40109aea4b7c466e6cc178c2 (patch)
treea3e2c7d36cbfae45fc95d6165e2926cdccdf61c9 /Makefile
parentf365af1acaed41948572ff78df55300d87132e64 (diff)
downloadhcalc-fb34cf86f6388f7f40109aea4b7c466e6cc178c2.tar.gz
Makefile: add realclean.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 12 insertions, 1 deletions
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