]> git.saurik.com Git - apt.git/blame - doc/makefile
* add "purge" commandline argument, closes: #133421)
[apt.git] / doc / makefile
CommitLineData
ac966541
AL
1# -*- make -*-
2BASE=..
3164dff9 3SUBDIR=doc
640c5d94 4SUBDIRS= fr ja pl pt_BR es
ac966541
AL
5
6# Bring in the default rules
7include ../buildlib/defaults.mak
8
b2e465d6
AL
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
ac966541
AL
12include $(DEBIANDOC_H)
13
24f6490f 14# XML man pages
b2e465d6 15SOURCE = apt-cache.8 apt-get.8 apt-cdrom.8 apt.conf.5 sources.list.5 \
b3d44315 16 apt-config.8 apt_preferences.5 \
d2793259
MV
17 apt-sortpkgs.1 apt-ftparchive.1 apt-extracttemplates.1 \
18 apt-key.8 apt-secure.8
b2e465d6 19INCLUDES = apt.ent
24f6490f 20include $(XML_MANPAGE_H)
c3c459fc
AL
21
22# Examples
b2e465d6 23SOURCE = examples/apt.conf examples/sources.list examples/configure-index
c3c459fc 24TO = $(DOC)
8319e9c3 25TARGET = binary
c3c459fc 26include $(COPY_H)
9975c278
AL
27
28#.PHONY: headers library clean veryclean all binary program doc doc.pt_BR doc.fr
640c5d94 29doc: doc.fr doc.ja doc.pl doc.pt_BR doc.es
9975c278
AL
30
31doc.fr: %.fr:
32 $(MAKE) -C fr $*
33
34doc.pt_BR: %.pt_BR:
35 $(MAKE) -C pt_BR $*
f1813c1a
AL
36
37doc.es: %.es:
0ee9ebde 38 $(MAKE) -C es $*
8667550d
AL
39
40doc.ja: %.ja:
41 $(MAKE) -C ja $*
640c5d94
MZ
42
43doc.pl: %.pl:
44 $(MAKE) -C pl $*
3174e150
MV
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