aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorPaul LeoNerd Evans <leonerd@leonerd.org.uk>2009-07-15 20:52:35 +0100
committerPaul LeoNerd Evans <leonerd@leonerd.org.uk>2009-07-15 20:52:35 +0100
commit83c7c3f6681d2b7d29dd1f068dbb6700b3af7818 (patch)
tree8b0df9440d18216257b07a8b244dd00a9b824856 /Makefile
parentbe998cef1b8a46391956dc212ef3bf1351da0f3a (diff)
downloadtermo-83c7c3f6681d2b7d29dd1f068dbb6700b3af7818.tar.gz
termo-83c7c3f6681d2b7d29dd1f068dbb6700b3af7818.tar.xz
termo-83c7c3f6681d2b7d29dd1f068dbb6700b3af7818.zip
Cope with building distdir at minor versions .3 (otherwise it clashes with *.3)
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 5 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index e1c75de..a1f9ad0 100644
--- a/Makefile
+++ b/Makefile
@@ -87,10 +87,11 @@ termkey.h: termkey.h.in Makefile
DISTDIR=libtermkey-$(VERSION_MAJOR).$(VERSION_MINOR)
distdir: all
- mkdir $(DISTDIR)
- cp *.c *.h *.3 $(DISTDIR)
- sed "s,@VERSION@,$(VERSION)," <termkey.pc.in >$(DISTDIR)/termkey.pc.in
- sed "/^# DIST CUT/Q" <Makefile >$(DISTDIR)/Makefile
+ mkdir __distdir
+ cp *.c *.h *.3 __distdir
+ sed "s,@VERSION@,$(VERSION)," <termkey.pc.in >__distdir/termkey.pc.in
+ sed "/^# DIST CUT/Q" <Makefile >__distdir/Makefile
+ mv __distdir $(DISTDIR)
TARBALL=$(DISTDIR).tar.gz