From a49f760c7b9c6f2525bb32ba1ff853e61657ba07 Mon Sep 17 00:00:00 2001 From: Antonio Terceiro Date: Mon, 9 Mar 2015 18:22:36 -0300 Subject: [PATCH] Fix dist target --- .gitignore | 1 + Makefile | 8 ++++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 335ec95..327eb61 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ *.tar.gz +/noosfero-spb-* diff --git a/Makefile b/Makefile index da34459..20bbbc3 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,7 @@ PACKAGE = noosfero-spb VERSION = 3 -TARBALL = $(PACKAGE)-$(VERSION).tar.gz +DISTDIR = $(PACKAGE)-$(VERSION) +TARBALL = $(DISTDIR).tar.gz all: @echo Nothing to be $@, all good. @@ -9,10 +10,13 @@ plugins_dir=/usr/lib/noosfero/plugins themes_dir=/usr/lib/noosfero/public/designs/themes dist: clean - tar --exclude=.git -caf $(TARBALL) * + mkdir $(DISTDIR) + tar --exclude=.git --exclude=$(DISTDIR) -cf - * | (cd $(DISTDIR) && tar xaf -) + tar --exclude=.git -caf $(TARBALL) $(DISTDIR) clean: $(RM) $(TARBALL) + $(RM) -r $(DISTDIR) install: install -d -m 0755 $(DESTDIR)/$(plugins_dir)/software_communities -- libgit2 0.21.2