make release creates a .tar.gz directly

This commit is contained in:
Matthias Loibl 2016-12-07 23:39:21 +01:00
parent 84c250ea12
commit 339a3c487c
No known key found for this signature in database
GPG Key ID: B1C7DF661ABB2C1A
2 changed files with 12 additions and 12 deletions

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
/dist/
/master.tar.gz
/node_modules/
/static/styles/

View File

@ -1,12 +1,11 @@
STYLES := static/styles
DIST := dist
.PHONY: all
all: build
.PHONY: clean
clean:
rm -rf $(STYLES) $(DIST)
rm -rf $(STYLES) master.tar.gz
.PHONY: install
install:
@ -19,13 +18,13 @@ build:
.PHONY: release
release:
mkdir -p dist/
cp -r archetypes/ dist/
cp -r i18n/ dist/
cp -r layouts/ dist/
cp -r static/ dist/
cp -r DCO dist/
cp -r LICENSE dist/
cp -r MAINTAINERS dist/
cp -r README.md dist/
cp -r theme.toml dist/
tar -cvzf master.tar.gz \
archetypes/ \
i18n/ \
layouts/ \
static/ \
DCO \
LICENSE \
MAINTAINERS \
README.md \
theme.toml