-.PHONY: all doc html gh-pages mostlyclean clean install
+.PHONY: all doc html info gh-pages mostlyclean clean install
.SUFFIXES:
all:
-doc: html
+doc: html info
html: $(addprefix ../html/,$(SGMLS:.sgml=.html) doc.css doc.png)
+info: $(addprefix ../info/,$(SGMLS:.sgml=.info))
+
mostlyclean:
clean:
- $(RM) -r ../html
+ $(RM) -r ../html ../info
-../html:
+../html ../info:
@mkdir $@
../html/%.html: %.sgml header.html | ../html
../html/doc.%: doc.% | ../html
cp $< ../html
+../info/%.info: %.sgml | ../info
+ @cd ../info && linuxdoc -B info ../doc/$<
+
gh-pages: html
ifdef GH_TOKEN
git clone --branch=gh-pages https://$(GH_TOKEN)@github.com/oliverschmidt/cc65.git $(GH_PAGES)