aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorPaul LeoNerd Evans <leonerd@leonerd.org.uk>2008-12-15 20:49:59 +0000
committerPaul LeoNerd Evans <leonerd@leonerd.org.uk>2008-12-15 20:49:59 +0000
commitaf50967d12929b5745e868796ba50e4ee9b54f6d (patch)
tree67bbae98a0fdae19ccb9944b1dcb5c56b2ba2063 /Makefile
parent51ed20590a1bb7ae82fc76ae3f06459ac7f70dd7 (diff)
downloadtermo-af50967d12929b5745e868796ba50e4ee9b54f6d.tar.gz
termo-af50967d12929b5745e868796ba50e4ee9b54f6d.tar.xz
termo-af50967d12929b5745e868796ba50e4ee9b54f6d.zip
Substitute version into termkey.pc.in at 'make dist' time
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 6bb13d7..31a5840 100644
--- a/Makefile
+++ b/Makefile
@@ -65,6 +65,8 @@ install-man:
MANSOURCE=$(wildcard *.3.sh)
BUILTMAN=$(MANSOURCE:.3.sh=.3)
+VERSION=$(VERSION_MAJOR).$(VERSION_MINOR)
+
all: doc
doc: $(BUILTMAN)
@@ -87,7 +89,7 @@ DISTDIR=libtermkey-$(VERSION_MAJOR).$(VERSION_MINOR)
distdir: all
mkdir $(DISTDIR)
cp *.c *.h *.3 $(DISTDIR)
- cp *.pc.in $(DISTDIR)
+ sed "s,@VERSION@,$(VERSION)," <termkey.pc.in >$(DISTDIR)/termkey.pc.in
sed "/^# DIST CUT/Q" <Makefile >$(DISTDIR)/Makefile
TARBALL=$(DISTDIR).tar.gz