]> git.saurik.com Git - apt.git/blame_incremental - doc/makefile
doc/apt.conf.5.xml: Deprecate #include, we have apt.conf.d nowadays which should be
[apt.git] / doc / makefile
... / ...
CommitLineData
1# -*- make -*-
2BASE=..
3SUBDIR=doc
4SUBDIRS= $(dir $(wildcard */makefile))
5
6# Bring in the default rules
7include ../buildlib/defaults.mak
8
9# Debian Doc SGML Documents
10SOURCE = dpkg-tech.sgml design.sgml files.sgml guide.sgml guide.it.sgml \
11 cache.sgml method.sgml offline.sgml
12include $(DEBIANDOC_H)
13
14# XML man pages
15SOURCE = 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
19INCLUDES = apt.ent
20include $(XML_MANPAGE_H)
21
22# Examples
23SOURCE = examples/apt.conf examples/sources.list examples/configure-index examples/apt-https-method-example.conf
24TO = $(DOC)
25TARGET = binary
26include $(COPY_H)
27
28#.PHONY: headers library clean veryclean all binary program doc doc.pt_BR doc.fr
29doc:
30 for dir in $(SUBDIRS); do\
31 $(MAKE) -C $$dir $@; \
32 done
33
34clean: clean-subdirs
35veryclean: veryclean-subdirs
36
37clean-subdirs:
38 for dir in $(SUBDIRS); do\
39 $(MAKE) -C $$dir clean; \
40 done
41
42veryclean-subdirs:
43 for dir in $(SUBDIRS); do\
44 $(MAKE) -C $$dir veryclean; \
45 done
46
47ifdef PO4A
48doc: po4a
49
50clean: po4a-clean
51
52.PHONY: update-po po4a
53update-po:
54 po4a --previous --no-backups --force --no-translations po4a.conf
55
56po4a-clean:
57 po4a --previous --rm-backups --rm-translations po4a.conf
58
59po4a:
60 po4a --previous --no-backups po4a.conf
61endif
62
63ifdef DOXYGEN
64DOXYGEN_SOURCES = $(shell find $(BASE)/apt-pkg -not -name .\\\#* -and \( -name \*.cc -or -name \*.h \) )
65
66clean: doxygen-clean
67
68doxygen-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
80doc: $(BUILD)/doc/doxygen-stamp
81
82endif