diff options
author | sijanec <sijanecantonluka@gmail.com> | 2020-09-23 18:37:16 +0200 |
---|---|---|
committer | sijanec <sijanecantonluka@gmail.com> | 2020-09-23 18:37:16 +0200 |
commit | 616c225661687b05ab82160f5b7d6dcb4d39b8e6 (patch) | |
tree | 08cdbdf9e80784cea0c58981c656fe94ae821edc /Makefile | |
parent | json bi lahko preveril (diff) | |
download | beziapp-616c225661687b05ab82160f5b7d6dcb4d39b8e6.tar beziapp-616c225661687b05ab82160f5b7d6dcb4d39b8e6.tar.gz beziapp-616c225661687b05ab82160f5b7d6dcb4d39b8e6.tar.bz2 beziapp-616c225661687b05ab82160f5b7d6dcb4d39b8e6.tar.lz beziapp-616c225661687b05ab82160f5b7d6dcb4d39b8e6.tar.xz beziapp-616c225661687b05ab82160f5b7d6dcb4d39b8e6.tar.zst beziapp-616c225661687b05ab82160f5b7d6dcb4d39b8e6.zip |
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |