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
.gitignore
1 1 *.tar.gz
  2 +/noosfero-spb-*
... ...
Makefile
1 1 PACKAGE = noosfero-spb
2 2 VERSION = 3
3   -TARBALL = $(PACKAGE)-$(VERSION).tar.gz
  3 +DISTDIR = $(PACKAGE)-$(VERSION)
  4 +TARBALL = $(DISTDIR).tar.gz
4 5  
5 6 all:
6 7 @echo Nothing to be $@, all good.
... ... @@ -9,10 +10,13 @@ plugins_dir=/usr/lib/noosfero/plugins
9 10 themes_dir=/usr/lib/noosfero/public/designs/themes
10 11  
11 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 17 clean:
15 18 $(RM) $(TARBALL)
  19 + $(RM) -r $(DISTDIR)
16 20  
17 21 install:
18 22 install -d -m 0755 $(DESTDIR)/$(plugins_dir)/software_communities
... ...