Commit 732af3e826b83be153e16de3950f729f46765066
1 parent
0a468c86
Exists in
master
and in
79 other branches
Changed Makefile to generate tar.gz in dist
Signed-off-by: Macartur Sousa <macartur.sc@gmail.com> Signed-off-by: Matheus Faria <matheus.sousa.faria@gmail.com>
Showing
1 changed file
with
7 additions
and
6 deletions
Show diff stats
Makefile
1 | 1 | PACKAGE = colab-spb-theme |
2 | 2 | VERSION = 0.2.0 |
3 | -DISTDIR = $(PACKAGE)-$(VERSION) | |
4 | -TARBALL = $(DISTDIR).tar.gz | |
3 | +DISTDIR = dist | |
4 | +PACKAGE_NAME = $(PACKAGE)-$(VERSION) | |
5 | +TARBALL = $(PACKAGE_NAME).tar.gz | |
5 | 6 | |
6 | 7 | all: |
7 | 8 | @echo Nothing to be $@, all good. |
... | ... | @@ -9,10 +10,10 @@ all: |
9 | 10 | colab_dir=/usr/lib/colab |
10 | 11 | |
11 | 12 | dist: clean |
12 | - mkdir $(DISTDIR) | |
13 | - tar --exclude=.git --exclude=$(DISTDIR) -cf - * | (cd $(DISTDIR) && tar xaf -) | |
14 | - tar --exclude=.git -caf $(TARBALL) $(DISTDIR) | |
15 | - rm -f ~/rpmbuild/SOURCES/$(TARBALL) && cp $(TARBALL) ~/rpmbuild/SOURCES/ | |
13 | + mkdir -p $(DISTDIR)/$(PACKAGE_NAME) | |
14 | + tar --exclude=.git --exclude=$(DISTDIR) -cf - * | (cd $(DISTDIR)/$(PACKAGE_NAME) && tar xaf -) | |
15 | + cd $(DISTDIR) && tar -caf $(TARBALL) $(PACKAGE_NAME) | |
16 | + rm -r $(DISTDIR)/$(PACKAGE_NAME) | |
16 | 17 | clean: |
17 | 18 | $(RM) $(TARBALL) |
18 | 19 | $(RM) -r $(DISTDIR) | ... | ... |