]>
Commit | Line | Data |
---|---|---|
ac966541 AL |
1 | # -*- make -*- |
2 | BASE=.. | |
3164dff9 | 3 | SUBDIR=doc |
b01390ea | 4 | SUBDIRS= $(dir $(wildcard */makefile)) |
ac966541 AL |
5 | |
6 | # Bring in the default rules | |
7 | include ../buildlib/defaults.mak | |
8 | ||
b2e465d6 | 9 | # Debian Doc SGML Documents |
7652e03e DK |
10 | SOURCE = $(wildcard *.sgml) |
11 | DEBIANDOC_HTML_OPTIONS=-l en | |
ac966541 AL |
12 | include $(DEBIANDOC_H) |
13 | ||
24f6490f | 14 | # XML man pages |
b2e465d6 | 15 | SOURCE = apt-cache.8 apt-get.8 apt-cdrom.8 apt.conf.5 sources.list.5 \ |
b3d44315 | 16 | apt-config.8 apt_preferences.5 \ |
d2793259 | 17 | apt-sortpkgs.1 apt-ftparchive.1 apt-extracttemplates.1 \ |
75a3362b | 18 | apt-key.8 apt-secure.8 apt-mark.8 |
b2e465d6 | 19 | INCLUDES = apt.ent |
24f6490f | 20 | include $(XML_MANPAGE_H) |
c3c459fc AL |
21 | |
22 | # Examples | |
fcdd9cdd | 23 | SOURCE = examples/apt.conf examples/sources.list examples/configure-index examples/apt-https-method-example.conf |
c3c459fc | 24 | TO = $(DOC) |
8319e9c3 | 25 | TARGET = binary |
c3c459fc | 26 | include $(COPY_H) |
9975c278 AL |
27 | |
28 | #.PHONY: headers library clean veryclean all binary program doc doc.pt_BR doc.fr | |
b01390ea | 29 | doc: |
2a52e8c5 DK |
30 | for dir in $(SUBDIRS); do\ |
31 | $(MAKE) -C $$dir $@; \ | |
32 | done | |
9975c278 | 33 | |
b01390ea DK |
34 | clean: clean-subdirs |
35 | veryclean: veryclean-subdirs | |
f1813c1a | 36 | |
2a52e8c5 DK |
37 | clean-subdirs: |
38 | for dir in $(SUBDIRS); do\ | |
b01390ea DK |
39 | $(MAKE) -C $$dir clean; \ |
40 | done | |
41 | ||
42 | veryclean-subdirs: | |
43 | for dir in $(SUBDIRS); do\ | |
44 | $(MAKE) -C $$dir veryclean; \ | |
2a52e8c5 | 45 | done |
8667550d | 46 | |
b01390ea DK |
47 | ifdef PO4A |
48 | doc: po4a | |
49 | ||
50 | clean: po4a-clean | |
51 | ||
52 | .PHONY: update-po po4a | |
53 | update-po: | |
54 | po4a --previous --no-backups --force --no-translations po4a.conf | |
55 | ||
2a52e8c5 DK |
56 | po4a-clean: |
57 | po4a --previous --rm-backups --rm-translations po4a.conf | |
640c5d94 | 58 | |
2a52e8c5 DK |
59 | po4a: |
60 | po4a --previous --no-backups po4a.conf | |
b01390ea | 61 | endif |
3174e150 MV |
62 | |
63 | ifdef DOXYGEN | |
64 | DOXYGEN_SOURCES = $(shell find $(BASE)/apt-pkg -not -name .\\\#* -and \( -name \*.cc -or -name \*.h \) ) | |
65 | ||
66 | clean: doxygen-clean | |
67 | ||
68 | doxygen-clean: | |
69 | rm -fr $(BUILD)/doc/doxygen | |
70 | rm -f $(BUILD)/doc/doxygen-stamp | |
71 | ||
72 | $(BUILD)/doc/Doxyfile: Doxyfile.in | |
73 | (cd $(BUILD) && ./config.status doc/Doxyfile) | |
74 | ||
75 | $(BUILD)/doc/doxygen-stamp: $(DOXYGEN_SOURCES) $(BUILD)/doc/Doxyfile | |
76 | rm -fr $(BUILD)/doc/doxygen | |
77 | $(DOXYGEN) $(BUILD)/doc/Doxyfile | |
78 | touch $(BUILD)/doc/doxygen-stamp | |
79 | ||
80 | doc: $(BUILD)/doc/doxygen-stamp | |
81 | ||
82 | endif |