]> git.saurik.com Git - apt.git/blame_incremental - doc/makefile
* fixed compile errors with g++ 7.3 (thanks to
[apt.git] / doc / makefile
... / ...
CommitLineData
1# -*- make -*-
2BASE=..
3SUBDIR=doc
4SUBDIRS= fr ja pl pt_BR es
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
19INCLUDES = apt.ent
20include $(XML_MANPAGE_H)
21
22# Examples
23SOURCE = examples/apt.conf examples/sources.list examples/configure-index
24TO = $(DOC)
25TARGET = binary
26include $(COPY_H)
27
28#.PHONY: headers library clean veryclean all binary program doc doc.pt_BR doc.fr
29doc: doc.fr doc.ja doc.pl doc.pt_BR doc.es
30
31doc.fr: %.fr:
32 $(MAKE) -C fr $*
33
34doc.pt_BR: %.pt_BR:
35 $(MAKE) -C pt_BR $*
36
37doc.es: %.es:
38 $(MAKE) -C es $*
39
40doc.ja: %.ja:
41 $(MAKE) -C ja $*
42
43doc.pl: %.pl:
44 $(MAKE) -C pl $*
45
46ifdef DOXYGEN
47DOXYGEN_SOURCES = $(shell find $(BASE)/apt-pkg -not -name .\\\#* -and \( -name \*.cc -or -name \*.h \) )
48
49clean: doxygen-clean
50
51doxygen-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
63doc: $(BUILD)/doc/doxygen-stamp
64
65endif