aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorn-peugnet <n.peugnet@free.fr>2019-10-23 01:04:30 +0200
committern-peugnet <n.peugnet@free.fr>2019-10-23 01:09:20 +0200
commitaeb582d8b66d256a4c9c989589daab79b535e484 (patch)
tree87f7c83ec42efbec6cdb5d32a048cf9857809561 /Makefile
parent01cb82b514ef9dcb1cb9e63492ebab621961babd (diff)
downloadwcms-aeb582d8b66d256a4c9c989589daab79b535e484.tar.gz
wcms-aeb582d8b66d256a4c9c989589daab79b535e484.zip
better dist zip target
using git archive the removing useless files and adding generated files
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile15
1 files changed, 9 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index fd30261..bef37ef 100644
--- a/Makefile
+++ b/Makefile
@@ -12,14 +12,17 @@ dist: distclean $(zip_release)
dist/w_cms_%.zip: all
@echo "Building Zip release..."
mkdir -p $(dir $@)
+ git archive --format=zip HEAD -o $@
+ zip -d $@ \
+ "src*" \
+ .gitignore \
+ composer.lock \
+ Makefile \
+ "package*" \
+ webpack.config.js
zip -r $@ \
- app \
- assets \
+ assets/js \
vendor \
- .htaccess \
- index.php \
- LICENSE.md \
- README.md \
-x "*test*" \
-x "*docs*"