3 # This handles man pages in DocBook SGMLL format. We convert to the respective
4 # output in the source directory then copy over to the final dest. This
5 # means yodl is only needed if compiling from CVS
8 # $(SOURCE) - The documents to use, in the form foo.sect, ie apt-cache.8
9 # the sgml files are called apt-cache.8.sgml
11 # See defaults.mak for information about LOCAL
13 # Some local definitions
18 LOCAL := sgml-manpage-$(firstword $(SOURCE))
19 $(LOCAL)-LIST := $(SOURCE)
21 # Install generation hooks
23 veryclean: veryclean/$(LOCAL)
25 $($(LOCAL)-LIST) :: % : %.sgml $(INCLUDES)
26 echo Creating man page $@
27 $(NSGMLS) $< | $(SGMLSPL) $(DOCBOOK2MAN)
30 .PHONY: veryclean/$(LOCAL)
42 # Strip from the source list any man pages we dont have compiled already
43 SOURCE := $(wildcard $(SOURCE))
46 # Chain to the manpage rule
47 ifneq ($(words $(SOURCE)),0)