3 # This processes debian-doc sgml to produce html and plain text output
6 # $(SOURCE) - The documents to use
8 # All output is writtin to files in the build doc directory
10 # See defaults.mak for information about LOCAL
12 # Some local definitions
13 LOCAL := debiandoc-$(firstword $(SOURCE))
14 $(LOCAL)-HTML := $(addsuffix .html,$(addprefix $(DOC)/,$(basename $(SOURCE))))
15 $(LOCAL)-TEXT := $(addsuffix .text,$(addprefix $(DOC)/,$(basename $(SOURCE))))
21 # Rules to build HTML documentations
24 # Install generation hooks
25 debiandoc: $($(LOCAL)-HTML)
26 veryclean: veryclean/html/$(LOCAL)
28 vpath %.sgml $(SUBDIRS)
30 echo Creating html for $< to $@
32 (HERE=`pwd`; cd $(@D) && $(DEBIANDOC_HTML) $(DEBIANDOC_HTML_OPTIONS) $$HERE/$<) || exit 199
35 .PHONY: veryclean/html/$(LOCAL)
36 veryclean/html/$(LOCAL):
43 # Rules to build Text documentations
46 # Install generation hooks
47 debiandoc: $($(LOCAL)-TEXT)
48 veryclean: veryclean/text/$(LOCAL)
50 vpath %.sgml $(SUBDIRS)
52 echo Creating text for $< to $@
53 $(DEBIANDOC_TEXT) -O $< > $@ || exit 198
56 .PHONY: veryclean/text/$(LOCAL)
57 veryclean/text/$(LOCAL):