From af50967d12929b5745e868796ba50e4ee9b54f6d Mon Sep 17 00:00:00 2001 From: Paul LeoNerd Evans Date: Mon, 15 Dec 2008 20:49:59 +0000 Subject: Substitute version into termkey.pc.in at 'make dist' time --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Makefile') 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)," $(DISTDIR)/termkey.pc.in sed "/^# DIST CUT/Q" $(DISTDIR)/Makefile TARBALL=$(DISTDIR).tar.gz -- cgit v1.2.3-70-g09d2