17 lines
423 B
Makefile
17 lines
423 B
Makefile
img: assets/img/raw/*
|
|
for file in assets/img/raw/* ; do \
|
|
basename=`basename $$file`; \
|
|
convert assets/img/raw/$$basename -sampling-factor 4:2:0 -strip -quality 75 -interlace JPEG -colorspace RGB assets/img/$$basename ; \
|
|
done
|
|
|
|
build: img
|
|
rm -rf _site; exit 0
|
|
~/.gem/ruby/2.7.0/bin/jekyll build
|
|
tar -czf blog.tar.gz _site
|
|
|
|
serve: img
|
|
~/.gem/ruby/2.7.0/bin/jekyll serve \
|
|
--drafts \
|
|
--unpublished \
|
|
--future
|