=== modified file 'Makefile' --- Makefile 2019-02-17 17:58:59 +0000 +++ Makefile 2017-11-29 19:27:48 +0000 @@ -51,8 +51,6 @@ VERSION_MAJOR=0 VERSION_MINOR=20 -VERSION=$(VERSION_MAJOR).$(VERSION_MINOR) - VERSION_CURRENT=15 VERSION_REVISION=0 VERSION_AGE=14 @@ -112,7 +110,7 @@ install -d $(DESTDIR)$(INCDIR) install -m644 termkey.h $(DESTDIR)$(INCDIR) install -d $(DESTDIR)$(LIBDIR)/pkgconfig - LIBDIR=$(LIBDIR) INCDIR=$(INCDIR) VERSION=$(VERSION) sh termkey.pc.sh >$(DESTDIR)$(LIBDIR)/pkgconfig/termkey.pc + LIBDIR=$(LIBDIR) INCDIR=$(INCDIR) sh termkey.pc.sh >$(DESTDIR)$(LIBDIR)/pkgconfig/termkey.pc install-lib: $(LIBRARY) install -d $(DESTDIR)$(LIBDIR) @@ -136,6 +134,8 @@ MANSOURCE=$(wildcard man/*.3.sh) BUILTMAN=$(MANSOURCE:.3.sh=.3) +VERSION=$(VERSION_MAJOR).$(VERSION_MINOR) + all: doc doc: $(BUILTMAN) @@ -164,7 +164,7 @@ cp t/*.c t/*.h __distdir/t mkdir __distdir/man cp man/*.[37] man/also __distdir/man - cp termkey.pc.sh __distdir/termkey.pc.sh + sed "s,@VERSION@,$(VERSION)," __distdir/termkey.pc.sh sed "/^# DIST CUT/Q" __distdir/Makefile mv __distdir $(DISTDIR) === modified file 'termkey.pc.sh' --- termkey.pc.sh 2019-02-17 17:58:59 +0000 +++ termkey.pc.sh 2017-11-29 19:27:48 +0000 @@ -4,7 +4,7 @@ Name: termkey Description: Abstract terminal key input library -Version: $VERSION +Version: @VERSION@ Libs: -L\${libdir} -ltermkey Cflags: -I\${includedir} EOF