Commit a49f760c7b9c6f2525bb32ba1ff853e61657ba07

Authored by Antonio Terceiro
1 parent bed9262f

Fix dist target

Showing 2 changed files with 7 additions and 2 deletions   Show diff stats
1 *.tar.gz 1 *.tar.gz
  2 +/noosfero-spb-*
1 PACKAGE = noosfero-spb 1 PACKAGE = noosfero-spb
2 VERSION = 3 2 VERSION = 3
3 -TARBALL = $(PACKAGE)-$(VERSION).tar.gz 3 +DISTDIR = $(PACKAGE)-$(VERSION)
  4 +TARBALL = $(DISTDIR).tar.gz
4 5
5 all: 6 all:
6 @echo Nothing to be $@, all good. 7 @echo Nothing to be $@, all good.
@@ -9,10 +10,13 @@ plugins_dir=/usr/lib/noosfero/plugins @@ -9,10 +10,13 @@ plugins_dir=/usr/lib/noosfero/plugins
9 themes_dir=/usr/lib/noosfero/public/designs/themes 10 themes_dir=/usr/lib/noosfero/public/designs/themes
10 11
11 dist: clean 12 dist: clean
12 - tar --exclude=.git -caf $(TARBALL) * 13 + mkdir $(DISTDIR)
  14 + tar --exclude=.git --exclude=$(DISTDIR) -cf - * | (cd $(DISTDIR) && tar xaf -)
  15 + tar --exclude=.git -caf $(TARBALL) $(DISTDIR)
13 16
14 clean: 17 clean:
15 $(RM) $(TARBALL) 18 $(RM) $(TARBALL)
  19 + $(RM) -r $(DISTDIR)
16 20
17 install: 21 install:
18 install -d -m 0755 $(DESTDIR)/$(plugins_dir)/software_communities 22 install -d -m 0755 $(DESTDIR)/$(plugins_dir)/software_communities