2014-03-06 21:32:24 +00:00
|
|
|
ifneq ($(shell echo),)
|
|
|
|
CMD_EXE = 1
|
|
|
|
endif
|
|
|
|
|
2014-03-08 23:19:57 +00:00
|
|
|
.PHONY: all mostlyclean clean install zip doc html info gh-pages
|
2014-02-04 23:20:43 +00:00
|
|
|
|
|
|
|
.SUFFIXES:
|
|
|
|
|
2014-03-06 21:32:24 +00:00
|
|
|
all mostlyclean install:
|
|
|
|
|
|
|
|
ifdef CMD_EXE
|
|
|
|
|
2014-03-08 23:19:57 +00:00
|
|
|
clean zip doc:
|
2014-03-06 21:32:24 +00:00
|
|
|
|
|
|
|
else # CMD_EXE
|
2014-02-04 23:20:43 +00:00
|
|
|
|
2014-02-05 19:55:17 +00:00
|
|
|
SGMLS := $(wildcard *.sgml)
|
|
|
|
|
2014-02-05 21:30:28 +00:00
|
|
|
../html/coding.html ../html/index.html: \
|
|
|
|
TOC_LEVEL = 0
|
|
|
|
|
|
|
|
TOC_LEVEL = 2
|
|
|
|
|
2014-03-06 21:32:24 +00:00
|
|
|
clean:
|
|
|
|
$(RM) -r ../html ../info
|
2014-02-05 19:55:17 +00:00
|
|
|
|
2014-03-08 23:19:57 +00:00
|
|
|
zip:
|
2014-03-09 00:20:39 +00:00
|
|
|
@cd .. && zip cc65 html/*.*
|
2014-03-08 23:19:57 +00:00
|
|
|
|
2014-02-27 22:37:36 +00:00
|
|
|
doc: html info
|
2014-02-05 19:55:17 +00:00
|
|
|
|
2014-02-09 21:43:55 +00:00
|
|
|
html: $(addprefix ../html/,$(SGMLS:.sgml=.html) doc.css doc.png)
|
2014-02-05 22:20:03 +00:00
|
|
|
|
2014-02-27 22:37:36 +00:00
|
|
|
info: $(addprefix ../info/,$(SGMLS:.sgml=.info))
|
|
|
|
|
|
|
|
../html ../info:
|
2014-02-05 22:20:03 +00:00
|
|
|
@mkdir $@
|
2014-02-04 23:20:43 +00:00
|
|
|
|
2014-02-09 21:57:38 +00:00
|
|
|
../html/%.html: %.sgml header.html | ../html
|
2014-02-09 21:50:01 +00:00
|
|
|
@cd ../html && linuxdoc -B html -s 0 -T $(TOC_LEVEL) -H ../doc/header.html ../doc/$<
|
2014-02-09 21:43:55 +00:00
|
|
|
|
|
|
|
../html/doc.%: doc.% | ../html
|
|
|
|
cp $< ../html
|
2014-02-04 20:31:35 +00:00
|
|
|
|
2014-02-27 22:37:36 +00:00
|
|
|
../info/%.info: %.sgml | ../info
|
|
|
|
@cd ../info && linuxdoc -B info ../doc/$<
|
|
|
|
|
2014-03-06 21:32:24 +00:00
|
|
|
endif # CMD_EXE
|