summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorAnton Luka Šijanec <sijanecantonluka@gmail.com>2020-06-09 18:34:50 +0200
committerAnton Luka Šijanec <sijanecantonluka@gmail.com>2020-06-09 18:34:50 +0200
commit855d322a78e4575e34500ba0b093f716b8631c30 (patch)
tree55bb7b3726434ea20726a91011fa47e8a918c52d /Makefile
parentMakefile patches (diff)
downloadbeziapp-855d322a78e4575e34500ba0b093f716b8631c30.tar
beziapp-855d322a78e4575e34500ba0b093f716b8631c30.tar.gz
beziapp-855d322a78e4575e34500ba0b093f716b8631c30.tar.bz2
beziapp-855d322a78e4575e34500ba0b093f716b8631c30.tar.lz
beziapp-855d322a78e4575e34500ba0b093f716b8631c30.tar.xz
beziapp-855d322a78e4575e34500ba0b093f716b8631c30.tar.zst
beziapp-855d322a78e4575e34500ba0b093f716b8631c30.zip
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile25
1 files changed, 9 insertions, 16 deletions
diff --git a/Makefile b/Makefile
index 63d9cc0..1a32f02 100644
--- a/Makefile
+++ b/Makefile
@@ -9,31 +9,24 @@ prepare:
#!/bin/bash
sudo apt install git -y
mkdir -p tmp
- cd tmp
- rm -rf bverbose
- git clone https://github.com/sijanec/bverbose
- cd bverbose
- make prepare
- make install
- mv bin/* ../../bin/
- cd ..
- rm -rf bverbose
- cd ..
+ rm -rf tmp/bverbose
+ cd tmp && git clone https://github.com/sijanec/bverbose && cd bverbose && \
+ make prepare && make install
+ mv tmp/bverbose/bin/* bin/
+ rm -rf tmp/bverbose
-install:
+generate:
#!/bin/bash
./bin/bvr-compose-html assets/pages-src/ dist/pages/ .html
cp -r assets/css dist/
cp -r assets/fonts dist/
cp -r assets/img dist/
find assets/root/ -type f \( ! -name "*.bvr" \) -exec cp -r "{}" dist/ \;
- find assets/root/ -name "*.bvr" -printf "%f\n" | xargs -I % bash -c "FILE='%'; FILE_DST="dist/\${FILE/.bvr/}"; ./bin/bvr-compose-single \"assets/root/\$FILE\" \"\$FILE_DST\""
-
+ -find assets/root/ -name "*.bvr" -printf "%f\n" | xargs -I % bash -c "FILE='%'; FILE_DST="dist/\$${FILE/.bvr/}"; ./bin/bvr-compose-single \"assets/root/\$$FILE\" \"\$$FILE_DST\""
# js bvr fajli
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 "*.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\""
cp -r assets/root/.well-known dist/