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/ /dist/
/master.tar.gz
/node_modules/ /node_modules/
/static/styles/ /static/styles/

View file

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