From 56634d0c82b412e1c34507ef287342b9e79aabc6 Mon Sep 17 00:00:00 2001 From: Paul LeoNerd Evans Date: Tue, 18 Nov 2008 15:46:29 +0000 Subject: [PATCH] Also added 'make dist' target to build distribution tarball --- Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Makefile b/Makefile index 74ae4da..1efb608 100644 --- a/Makefile +++ b/Makefile @@ -88,3 +88,9 @@ distdir: all cp *.c *.h *.3 $(DISTDIR) cp *.pc.in $(DISTDIR) sed "/^# DIST CUT/Q" $(DISTDIR)/Makefile + +TARBALL=$(DISTDIR).tar.bz2 + +dist: distdir + tar -cjf $(TARBALL) $(DISTDIR) + rm -rf $(DISTDIR)