dosage/doc/web/Makefile

32 lines
653 B
Makefile
Raw Normal View History

2013-03-29 10:01:04 +00:00
HOMEPAGE:=$(HOME)/public_html/dosage-webpage.git
WOK:=$(HOME)/projects/wok.git/wok
all:
comics: ../../testresults.txt
# regenerate comic pages
rm -f content/comics/*.md
env PYTHONPATH=../.. ./mkcomics.py $< content
2013-04-09 17:33:50 +00:00
votes:
env PYTHONPATH=../.. ./mkvotes.py
2013-03-29 10:13:55 +00:00
media/favicon.ico: ../icon/favicon.ico
cp $< $@
gen: media/favicon.ico
# copy some static files
cp ../dosage.1.html $(HOMEPAGE)
2013-04-11 05:21:48 +00:00
env PYTHONPATH=$(HOME)/src $(WOK) -v
2013-03-29 10:01:04 +00:00
serve:
xdg-open http://localhost:8080
$(WOK) --server localhost:8080
upload:
cd $(HOMEPAGE) && git add . && git commit -m "Updated" && git push
release: gen upload
2013-03-29 10:01:04 +00:00
2013-04-09 17:33:50 +00:00
.PHONY: all comics gen serve upload release votes