2015-01-11 21:52:17 +00:00
|
|
|
all: compile compress upload
|
|
|
|
|
|
|
|
compile: clean
|
|
|
|
@echo "=== Generating static files"
|
|
|
|
@bundle exec jekyll build
|
|
|
|
@echo "Done."
|
|
|
|
|
2016-02-29 21:40:06 +00:00
|
|
|
compress: compile
|
2015-01-11 21:52:17 +00:00
|
|
|
@echo "=== Compressing generated files"
|
2015-01-31 17:58:08 +00:00
|
|
|
@find ./_site -type f | xargs zopfli --gzip --i30
|
2016-02-29 21:40:06 +00:00
|
|
|
@find ./_site -type f ! -name "*.gz" | xargs -I {} bro --quality 11 --input {} --output {}.br
|
|
|
|
@find ./_site -type f -name "*.br" | xargs chmod 644
|
2015-01-11 21:52:17 +00:00
|
|
|
@echo "Done."
|
|
|
|
|
|
|
|
upload:
|
|
|
|
@echo "=== Syncing files"
|
2016-02-29 21:40:06 +00:00
|
|
|
@rsync -avz --no-o --no-g -e ssh --chmod=og=r -p --delete _site/ kempkens.io:/iocage/jails/506fd9f8-15c0-11e5-adf5-477a0b920463/root/var/www/main
|
2015-01-11 21:52:17 +00:00
|
|
|
@echo "Done."
|
|
|
|
@echo "=== Changing permissions"
|
2016-02-29 21:40:06 +00:00
|
|
|
@ssh kempkens.io chmod 755 /iocage/jails/506fd9f8-15c0-11e5-adf5-477a0b920463/root/var/www/main
|
|
|
|
@ssh kempkens.io find /iocage/jails/506fd9f8-15c0-11e5-adf5-477a0b920463/root/var/www/main -type d -exec chmod 755 {} +
|
2015-01-11 21:52:17 +00:00
|
|
|
@echo "Done."
|
|
|
|
|
|
|
|
clean:
|
|
|
|
@rm -rf ./_site
|