2014-02-04 23:20:43 +00:00
|
|
|
.PHONY: all html gh-pages
|
|
|
|
|
|
|
|
.SUFFIXES:
|
|
|
|
|
|
|
|
all: html
|
|
|
|
|
|
|
|
html: $(addprefix ../html/,$(subst .sgml,.html,$(wildcard *.sgml)))
|
|
|
|
|
|
|
|
../html:
|
|
|
|
mkdir $@
|
|
|
|
|
|
|
|
../html/%.html: %.sgml | ../html
|
|
|
|
linuxdoc -B html --split=0 --toc=2 $<
|
|
|
|
mv *.html $(@D)
|
|
|
|
|
|
|
|
../html/coding.html: coding.sgml | ../html
|
|
|
|
linuxdoc -B html --split=0 $<
|
|
|
|
mv *.html $(@D)
|
|
|
|
|
|
|
|
../html/index.html: index.sgml | ../html
|
|
|
|
linuxdoc -B html --split=0 $<
|
|
|
|
mv *.html $(@D)
|
|
|
|
|
2014-02-04 20:31:35 +00:00
|
|
|
GH_PAGES = ../../gh-pages
|
|
|
|
|
2014-02-04 23:20:43 +00:00
|
|
|
gh-pages: html
|
2014-02-04 20:31:35 +00:00
|
|
|
git clone --branch=gh-pages https://$(GH_TOKEN)@github.com/oliverschmidt/cc65.git $(GH_PAGES)
|
|
|
|
git --work-tree=$(GH_PAGES) --git-dir=$(GH_PAGES)/.git config user.name "Oliver Schmidt"
|
|
|
|
git --work-tree=$(GH_PAGES) --git-dir=$(GH_PAGES)/.git config user.email "ol.sc@web.de"
|
2014-02-04 23:20:43 +00:00
|
|
|
rm -rf $(GH_PAGES)/test
|
2014-02-04 23:29:27 +00:00
|
|
|
mkdir $(GH_PAGES)/test
|
2014-02-04 23:20:43 +00:00
|
|
|
cp -R ../html/* $(GH_PAGES)/test
|
2014-02-05 17:40:03 +00:00
|
|
|
git --work-tree=$(GH_PAGES) --git-dir=$(GH_PAGES)/.git add -A .
|
|
|
|
git --work-tree=$(GH_PAGES) --git-dir=$(GH_PAGES)/.git commit --allow-empty -m "Updated doc from commit $(TRAVIS_COMMIT)."
|
2014-02-04 20:31:35 +00:00
|
|
|
git --work-tree=$(GH_PAGES) --git-dir=$(GH_PAGES)/.git push
|