Improved doc and samples default target.

The 'all' target deliberately doesn't build the doc nor the samples. But that doesn't mean that the Makefiles in the 'doc' and 'samples' directories must default to the (empty) 'all' target.
This commit is contained in:
Oliver Schmidt
2016-06-19 18:55:00 +02:00
parent e47485f925
commit c9e9679a06
3 changed files with 28 additions and 27 deletions

View File

@@ -9,11 +9,9 @@ endif
htmldir = $(prefix)/share/doc/cc65$(DESTPACKAGE_SUFFIX)/html
infodir = $(prefix)/share/info
all mostlyclean:
ifdef CMD_EXE
clean install zip doc:
doc clean install zip:
else # CMD_EXE
@@ -26,6 +24,24 @@ TOC_LEVEL = 2
INSTALL = install
doc: html info
html: $(addprefix ../html/,$(SGMLS:.sgml=.html) doc.css doc.png)
info: $(addprefix ../info/,$(SGMLS:.sgml=.info))
../html ../info:
@mkdir $@
../html/%.html: %.sgml header.html | ../html
@cd ../html && linuxdoc -B html -s 0 -T $(TOC_LEVEL) -H ../doc/header.html ../doc/$<
../html/doc.%: doc.% | ../html
cp $< ../html
../info/%.info: %.sgml | ../info
@cd ../info && linuxdoc -B info ../doc/$<
clean:
$(RM) -r ../html ../info
@@ -45,22 +61,6 @@ ifneq "$(wildcard ../html)" ""
@cd .. && zip cc65 html/*.*
endif
doc: html info
html: $(addprefix ../html/,$(SGMLS:.sgml=.html) doc.css doc.png)
info: $(addprefix ../info/,$(SGMLS:.sgml=.info))
../html ../info:
@mkdir $@
../html/%.html: %.sgml header.html | ../html
@cd ../html && linuxdoc -B html -s 0 -T $(TOC_LEVEL) -H ../doc/header.html ../doc/$<
../html/doc.%: doc.% | ../html
cp $< ../html
../info/%.info: %.sgml | ../info
@cd ../info && linuxdoc -B info ../doc/$<
endif # CMD_EXE
all mostlyclean: