bovender/Makefile

11 lines
346 B
Makefile

.PHONY: upload
upload: assets/main.css sitemap.xml
rsync -rv --exclude .git/ --exclude src/ --exclude node_modules/ . bovender.de:/var/www/bovender/
assets/main.css: src/component.scss src/config.scss src/bovender.scss
yarn exec webpack
sitemap.xml: index.html privacy.html
sed -i -E "s/mod>[^<]*/mod>$$(date --rfc-3339=date)/" sitemap.xml