summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorrstular <rok@stular.eu>2020-09-23 22:29:26 +0200
committerGitHub <noreply@github.com>2020-09-23 22:29:26 +0200
commitf9a0b8875fb5aa2009ea39b77869fb32d58b09f1 (patch)
treecb348e1e718a32ec375f419b1da5e8e333d69812 /Makefile
parentMerge pull request #25 from beziapp/dev (diff)
parentše en tracking feature (diff)
downloadbeziapp-f9a0b8875fb5aa2009ea39b77869fb32d58b09f1.tar
beziapp-f9a0b8875fb5aa2009ea39b77869fb32d58b09f1.tar.gz
beziapp-f9a0b8875fb5aa2009ea39b77869fb32d58b09f1.tar.bz2
beziapp-f9a0b8875fb5aa2009ea39b77869fb32d58b09f1.tar.lz
beziapp-f9a0b8875fb5aa2009ea39b77869fb32d58b09f1.tar.xz
beziapp-f9a0b8875fb5aa2009ea39b77869fb32d58b09f1.tar.zst
beziapp-f9a0b8875fb5aa2009ea39b77869fb32d58b09f1.zip
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 611336b..90fe3e1 100644
--- a/Makefile
+++ b/Makefile
@@ -4,7 +4,7 @@ default:
@echo " make prepare installs dependencies, uses \`sudo apt\`."
@echo " make generate installs BežiApp to dist/"
@echo "notes and hacks:"
- @echo " \`cp /bin/cp bin/bvr-jsmin\` if you don't want jsmin (before generate)"
+ @echo " \`env jsminpath=/bin/cp make generate\` to prevent js minification"
@echo "no target specified, exiting ..."
prepare:
@@ -29,6 +29,6 @@ generate:
mkdir -p dist/js
# js ne znam te magije
-find assets/js/ -name "*.bvr" -printf "%f\n" | xargs -I % bash -c "FILE='%'; FILE_DST="dist/js/\$${FILE/.bvr/}"; ./bin/bvr-compose-single \"assets/js/\$$FILE\" \"\$$FILE_DST\""
- -find assets/js/ -name "*.js" -printf "%P\n" | xargs -I % bash -c "FILE='%'; FILE_DST="dist/js/\$${FILE/.bvr/}"; ./bin/bvr-jsmin assets/js/\"\$$FILE\" \"\$$FILE_DST\""
+ -find assets/js/ -name "*.js" -printf "%P\n" | xargs -I % bash -c "test -z "\$${jsminpath}" && jsminpath=./bin/bvr-jsmin; FILE='%'; FILE_DST="dist/js/\$${FILE/.bvr/}"; \$$jsminpath assets/js/\"\$$FILE\" \"\$$FILE_DST\""
cp -r assets/root/.well-known dist/
chmod 0775 dist -R