]>
Commit | Line | Data |
---|---|---|
ac966541 AL |
1 | # -*- make -*- |
2 | BASE=.. | |
3164dff9 | 3 | SUBDIR=doc |
640c5d94 | 4 | SUBDIRS= fr ja pl pt_BR es |
ac966541 AL |
5 | |
6 | # Bring in the default rules | |
7 | include ../buildlib/defaults.mak | |
8 | ||
b2e465d6 AL |
9 | # Debian Doc SGML Documents |
10 | SOURCE = dpkg-tech.sgml design.sgml files.sgml guide.sgml guide.it.sgml \ | |
11 | cache.sgml method.sgml offline.sgml | |
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 | |
7948d3b2 | 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 | |
640c5d94 | 29 | doc: doc.fr doc.ja doc.pl doc.pt_BR doc.es |
9975c278 AL |
30 | |
31 | doc.fr: %.fr: | |
32 | $(MAKE) -C fr $* | |
33 | ||
34 | doc.pt_BR: %.pt_BR: | |
35 | $(MAKE) -C pt_BR $* | |
f1813c1a AL |
36 | |
37 | doc.es: %.es: | |
0ee9ebde | 38 | $(MAKE) -C es $* |
8667550d AL |
39 | |
40 | doc.ja: %.ja: | |
41 | $(MAKE) -C ja $* | |
640c5d94 MZ |
42 | |
43 | doc.pl: %.pl: | |
44 | $(MAKE) -C pl $* | |
3174e150 MV |
45 | |
46 | ifdef DOXYGEN | |
47 | DOXYGEN_SOURCES = $(shell find $(BASE)/apt-pkg -not -name .\\\#* -and \( -name \*.cc -or -name \*.h \) ) | |
48 | ||
49 | clean: doxygen-clean | |
50 | ||
51 | doxygen-clean: | |
52 | rm -fr $(BUILD)/doc/doxygen | |
53 | rm -f $(BUILD)/doc/doxygen-stamp | |
54 | ||
55 | $(BUILD)/doc/Doxyfile: Doxyfile.in | |
56 | (cd $(BUILD) && ./config.status doc/Doxyfile) | |
57 | ||
58 | $(BUILD)/doc/doxygen-stamp: $(DOXYGEN_SOURCES) $(BUILD)/doc/Doxyfile | |
59 | rm -fr $(BUILD)/doc/doxygen | |
60 | $(DOXYGEN) $(BUILD)/doc/Doxyfile | |
61 | touch $(BUILD)/doc/doxygen-stamp | |
62 | ||
63 | doc: $(BUILD)/doc/doxygen-stamp | |
64 | ||
65 | endif |