aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
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