4 SUBDIRS= $(dir $(wildcard */makefile))
6 # Bring in the default rules
7 include ../buildlib/defaults.mak
9 # Debian Doc SGML Documents
10 SOURCE = $(wildcard *.sgml)
11 DEBIANDOC_HTML_OPTIONS=-l en.UTF-8
12 include $(DEBIANDOC_H)
14 # Do not use XMLTO, build the manpages directly with XSLTPROC
16 # generate a list of accepted man page translations
17 SOURCE = $(patsubst %.xml,%,$(wildcard *.?.xml))
19 STYLESHEET=manpage-style.xsl
21 LOCAL := manpage-$(firstword $(SOURCE))
22 $(LOCAL)-LIST := $(SOURCE)
24 # Install generation hooks
26 veryclean: veryclean/$(LOCAL)
28 $($(LOCAL)-LIST) :: % : %.xml $(INCLUDES)
29 echo Creating man page $@
30 $(XSLTPROC) -o $@ $(STYLESHEET) $<
33 .PHONY: veryclean/$(LOCAL)
39 # Chain to the manpage rule
44 SOURCE = examples/apt.conf examples/sources.list examples/configure-index examples/apt-https-method-example.conf
49 #.PHONY: headers library clean veryclean all binary program doc doc.pt_BR doc.fr
51 for dir in $(SUBDIRS); do\
52 $(MAKE) -C $$dir $@; \
56 veryclean: veryclean-subdirs
59 for dir in $(SUBDIRS); do\
60 $(MAKE) -C $$dir clean; \
64 for dir in $(SUBDIRS); do\
65 $(MAKE) -C $$dir veryclean; \
73 .PHONY: update-po po4a
75 po4a --previous --no-backups --force --no-translations po4a.conf
78 po4a --previous --rm-backups --rm-translations po4a.conf
81 po4a --previous --no-backups po4a.conf
85 DOXYGEN_SOURCES = $(shell find $(BASE)/apt-pkg -not -name .\\\#* -and \( -name \*.cc -or -name \*.h \) )
90 rm -fr $(BUILD)/doc/doxygen
91 rm -f $(BUILD)/doc/doxygen-stamp
93 $(BUILD)/doc/Doxyfile: Doxyfile.in
94 (cd $(BUILD) && ./config.status doc/Doxyfile)
96 $(BUILD)/doc/doxygen-stamp: $(DOXYGEN_SOURCES) $(BUILD)/doc/Doxyfile
97 rm -fr $(BUILD)/doc/doxygen
98 $(DOXYGEN) $(BUILD)/doc/Doxyfile
99 touch $(BUILD)/doc/doxygen-stamp
101 doc: $(BUILD)/doc/doxygen-stamp