This repository was archived by the owner on Dec 13, 2023. It is now read-only.
File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -51,6 +51,8 @@ TESTFILES=$(TESTSOURCES:.c=.t)
51
51
VERSION_MAJOR =0
52
52
VERSION_MINOR =20
53
53
54
+ VERSION =$(VERSION_MAJOR ) .$(VERSION_MINOR )
55
+
54
56
VERSION_CURRENT =15
55
57
VERSION_REVISION =0
56
58
VERSION_AGE =14
@@ -110,7 +112,7 @@ install-inc: termkey.h
110
112
install -d $(DESTDIR )$(INCDIR )
111
113
install -m644 termkey.h $(DESTDIR )$(INCDIR )
112
114
install -d $(DESTDIR )$(LIBDIR ) /pkgconfig
113
- LIBDIR=$(LIBDIR ) INCDIR=$(INCDIR ) sh termkey.pc.sh > $(DESTDIR )$(LIBDIR ) /pkgconfig/termkey.pc
115
+ LIBDIR=$(LIBDIR ) INCDIR=$(INCDIR ) VERSION= $( VERSION ) sh termkey.pc.sh > $(DESTDIR )$(LIBDIR ) /pkgconfig/termkey.pc
114
116
115
117
install-lib : $(LIBRARY )
116
118
install -d $(DESTDIR )$(LIBDIR )
@@ -134,8 +136,6 @@ install-man:
134
136
MANSOURCE =$(wildcard man/* .3.sh)
135
137
BUILTMAN=$(MANSOURCE:.3.sh =.3)
136
138
137
- VERSION =$(VERSION_MAJOR ) .$(VERSION_MINOR )
138
-
139
139
all : doc
140
140
141
141
doc : $(BUILTMAN )
@@ -164,7 +164,7 @@ distdir: all
164
164
cp t/* .c t/* .h __distdir/t
165
165
mkdir __distdir/man
166
166
cp man/* .[37] man/also __distdir/man
167
- sed " s,@VERSION@, $( VERSION ) , " < termkey.pc.sh > __distdir/termkey.pc.sh
167
+ cp termkey.pc.sh __distdir/termkey.pc.sh
168
168
sed " /^# DIST CUT/Q" < Makefile > __distdir/Makefile
169
169
mv __distdir $(DISTDIR )
170
170
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ includedir=$INCDIR
4
4
5
5
Name: termkey
6
6
Description: Abstract terminal key input library
7
- Version: @ VERSION@
7
+ Version: $ VERSION
8
8
Libs: -L\$ {libdir} -ltermkey
9
9
Cflags: -I\$ {includedir}
10
10
EOF
You can’t perform that action at this time.
0 commit comments