]> git.saurik.com Git - apt-legacy.git/blob - doc/makefile
Upgraded to APT 0.7.
[apt-legacy.git] / doc / makefile
1 # -*- make -*-
2 BASE=..
3 SUBDIR=doc
4 SUBDIRS= fr ja pl pt_BR es
5
6 # Bring in the default rules
7 include ../buildlib/defaults.mak
8
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
12 include $(DEBIANDOC_H)
13
14 # XML man pages
15 SOURCE = apt-cache.8 apt-get.8 apt-cdrom.8 apt.conf.5 sources.list.5 \
16 apt-config.8 apt_preferences.5 \
17 apt-sortpkgs.1 apt-ftparchive.1 apt-extracttemplates.1 \
18 apt-key.8 apt-secure.8 apt-mark.8
19 INCLUDES = apt.ent
20 include $(XML_MANPAGE_H)
21
22 # Examples
23 SOURCE = examples/apt.conf examples/sources.list examples/configure-index examples/apt-https-method-example.conf
24 TO = $(DOC)
25 TARGET = binary
26 include $(COPY_H)
27
28 #.PHONY: headers library clean veryclean all binary program doc doc.pt_BR doc.fr
29 doc: doc.fr doc.ja doc.pl doc.pt_BR doc.es
30
31 doc.fr: %.fr:
32 $(MAKE) -C fr $*
33
34 doc.pt_BR: %.pt_BR:
35 $(MAKE) -C pt_BR $*
36
37 doc.es: %.es:
38 $(MAKE) -C es $*
39
40 doc.ja: %.ja:
41 $(MAKE) -C ja $*
42
43 doc.pl: %.pl:
44 $(MAKE) -C pl $*
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