Cope with building distdir at minor versions .3 (otherwise it clashes with *.3)
This commit is contained in:
parent
be998cef1b
commit
83c7c3f668
9
Makefile
9
Makefile
|
@ -87,10 +87,11 @@ termkey.h: termkey.h.in Makefile
|
||||||
DISTDIR=libtermkey-$(VERSION_MAJOR).$(VERSION_MINOR)
|
DISTDIR=libtermkey-$(VERSION_MAJOR).$(VERSION_MINOR)
|
||||||
|
|
||||||
distdir: all
|
distdir: all
|
||||||
mkdir $(DISTDIR)
|
mkdir __distdir
|
||||||
cp *.c *.h *.3 $(DISTDIR)
|
cp *.c *.h *.3 __distdir
|
||||||
sed "s,@VERSION@,$(VERSION)," <termkey.pc.in >$(DISTDIR)/termkey.pc.in
|
sed "s,@VERSION@,$(VERSION)," <termkey.pc.in >__distdir/termkey.pc.in
|
||||||
sed "/^# DIST CUT/Q" <Makefile >$(DISTDIR)/Makefile
|
sed "/^# DIST CUT/Q" <Makefile >__distdir/Makefile
|
||||||
|
mv __distdir $(DISTDIR)
|
||||||
|
|
||||||
TARBALL=$(DISTDIR).tar.gz
|
TARBALL=$(DISTDIR).tar.gz
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue