aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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