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))))
19 # Rules to build HTML documentations
22 # Install generation hooks
24 veryclean: veryclean/html/$(LOCAL)
26 vpath %.sgml $(SUBDIRS)
28 echo Creating html for $< to $@
30 (HERE=`pwd`; cd $(@D) && debiandoc2html $$HERE/$<)
33 .PHONY: veryclean/html/$(LOCAL)
34 veryclean/html/$(LOCAL):
41 # Rules to build Text documentations
44 # Install generation hooks
46 veryclean: veryclean/text/$(LOCAL)
48 vpath %.sgml $(SUBDIRS)
50 echo Creating text for $< to $@
51 debiandoc2text -O $< > $@
54 .PHONY: veryclean/text/$(LOCAL)
55 veryclean/text/$(LOCAL):