aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2022-05-16 19:03:50 -0700
committerKaz Kylheku <kaz@kylheku.com>2022-05-16 19:03:50 -0700
commit71bbfa562d0299f443381dce206dd5662ffea744 (patch)
tree7525b34046acba87fb43a0832a746719628dc927 /Makefile
parent46c52e5e2f70749803b2a3906e2da1d6d0b1fdf8 (diff)
downloadpw-71bbfa562d0299f443381dce206dd5662ffea744.tar.gz
pw-71bbfa562d0299f443381dce206dd5662ffea744.tar.bz2
pw-71bbfa562d0299f443381dce206dd5662ffea744.zip
Start release notes, as a man page.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile15
1 files changed, 10 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 2050b94..001aae1 100644
--- a/Makefile
+++ b/Makefile
@@ -9,10 +9,15 @@ endif
CFLAGS ?= -g -O2 -W -Wall
override CFLAGS += $(NEEDED_CFLAGS) -DCONFIG_PW_VER=\"$(PW_VERSION)\"
DESTDIR ?= /usr/local
-.PHONY: all pw.1
-all: pw pw.1
+.PHONY: all fixver
+all: pw fixver
pw:
clean:; rm -f pw
-install:; install pw $(DESTDIR)/bin/pw; install pw.1 $(DESTDIR)/share/man/man1
-pw.1:; @sed -e '/^\.TH/s/Version [^"]\+/Version $(PW_VERSION)/' pw.1 > pw.tmp
- cmp -s pw.1 pw.tmp && rm pw.tmp || mv pw.tmp pw.1
+install:; install pw $(DESTDIR)/bin/pw; \
+ install pw.1 $(DESTDIR)/share/man/man1 \
+ install pw-relnotes.5 $(DESTDIR)/share/man/man5
+define FIXVER
+sed -e '/^\.TH/s/Version [^"]\+/Version $(PW_VERSION)/' $1 > pw.tmp ;
+cmp -s $1 pw.tmp && rm pw.tmp || mv pw.tmp $1
+endef
+fixver:; @$(call FIXVER,pw.1); $(call FIXVER, pw-relnotes.5)