diff options
-rw-r--r-- | Makefile | 4 | ||||
-rw-r--r-- | termkey.pc.in | 2 |
2 files changed, 4 insertions, 2 deletions
@@ -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 diff --git a/termkey.pc.in b/termkey.pc.in index 6e54e8e..4c0eb8f 100644 --- a/termkey.pc.in +++ b/termkey.pc.in @@ -4,6 +4,6 @@ includedir=${prefix}/include Name: termkey Description: Abstract terminal key input library -Version: 0.1 +Version: @VERSION@ Libs: -L${libdir} -ltermkey Cflags: -I${includedir} |