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.
 
 
 
simpler-dash/Makefile

39 lines
772 B

.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