simpler-dash/Makefile
Juan Canham 556f379c05 Remove JS and re-arange files
* Remove Javascript
* Move files about
* Add Makefile
* Add Privacy & ToS
* Add favicon
* Make index.html static
* Add requirements.txt
2020-04-10 03:24:17 +01:00

40 lines
772 B
Makefile

.PHONY: help all local deploy install clean build test sync post-test
SITENAME=juancanham.com
#TARGET=/var/www/html/simpler-dash/
TARGET=home:/tmp/simpler-dash/
linkchecker=linkchecker --check-extern
help:
@echo 'all: local deploy'
@echo 'local: install clean build'
@echo 'deploy: test sync post-test'
all: local deploy
local: install build
deploy: test sync post-test
install:
pip install -r requirements.txt
clean:
rm -r dist/* || true
build: clean
cp -v *.html *.jpg *.ico dist/
cp -rv css/ webfonts/ dist/
for file in ToS Privacy; do markdown_py $${file}.md > dist/$${file} ; done
test:
$(linkchecker) dist/index.html
sync:
rsync -vr --delete dist/ $(TARGET)
post-test:
$(linkchecker) https://$(SITENAME)
wget http://${SITENAME} -O /dev/null