2013-03-29 10:01:04 +00:00
|
|
|
HOMEPAGE:=$(HOME)/public_html/dosage-webpage.git
|
|
|
|
WOK:=$(HOME)/projects/wok.git/wok
|
|
|
|
|
|
|
|
all:
|
|
|
|
|
2013-04-11 16:27:44 +00:00
|
|
|
comics: data/testresults.txt
|
2013-03-29 10:01:04 +00:00
|
|
|
# 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
|
|
|
|
|
2013-04-01 09:47:44 +00:00
|
|
|
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
|