1 .PHONY: all doc html gh-pages mostlyclean clean install
7 SGMLS := $(wildcard *.sgml)
9 GH_PAGES = ../../gh-pages
20 html: $(addprefix ../html/,$(SGMLS:.sgml=.html))
25 ../html/%.html: %.sgml | ../html
26 linuxdoc -B html --split=0 --toc=2 $<
31 git clone --branch=gh-pages https://$(GH_TOKEN)@github.com/oliverschmidt/cc65.git $(GH_PAGES)
32 git --work-tree=$(GH_PAGES) --git-dir=$(GH_PAGES)/.git config user.name "Oliver Schmidt"
33 git --work-tree=$(GH_PAGES) --git-dir=$(GH_PAGES)/.git config user.email "ol.sc@web.de"
34 $(RM) -r $(GH_PAGES)/test
35 mkdir $(GH_PAGES)/test
36 cp -R ../html/* $(GH_PAGES)/test
37 git --work-tree=$(GH_PAGES) --git-dir=$(GH_PAGES)/.git add -A .
38 -git --work-tree=$(GH_PAGES) --git-dir=$(GH_PAGES)/.git commit -m "Updated doc from commit $(TRAVIS_COMMIT)."
39 git --work-tree=$(GH_PAGES) --git-dir=$(GH_PAGES)/.git push
44 all doc mostlyclean clean install: