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)," $(DISTDIR)/termkey.pc.in - sed "/^# DIST CUT/Q" $(DISTDIR)/Makefile + mkdir __distdir + cp *.c *.h *.3 __distdir + sed "s,@VERSION@,$(VERSION)," __distdir/termkey.pc.in + sed "/^# DIST CUT/Q" __distdir/Makefile + mv __distdir $(DISTDIR) TARBALL=$(DISTDIR).tar.gz