Front website https://natronics.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
672 B

_site: src/favicon.ico src/js/mathjax
cobalt build
src/js/mathjax: package-lock.json
cp -r node_modules/mathjax/es5 src/js/mathjax
src/favicon.ico: favicon.svg
rsvg-convert -w 16 -h 16 --background-color=none favicon.svg -o favicon-16.png
rsvg-convert -w 32 -h 32 --background-color=none favicon.svg -o favicon-32.png
rsvg-convert -w 64 -h 64 --background-color=none favicon.svg -o favicon-64.png
convert favicon-16.png favicon-32.png favicon-64.png favicon.ico
rm favicon*.png
mv favicon.ico src/
deploy: _site
rsync --delete -a _site/ amy:/var/www/natronics.org
clean:
rm -rf _site
rm -f src/favicon.ico
rm -rf src/js/mathjax
.PHONY: _site deploy clean