]> git.saurik.com Git - apt.git/blame - doc/makefile
add ignore patterns to be able to use "bzr status" or "bzr add" again
[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 17 apt-sortpkgs.1 apt-ftparchive.1 apt-extracttemplates.1 \
75a3362b 18 apt-key.8 apt-secure.8 apt-mark.8
b2e465d6 19INCLUDES = apt.ent
24f6490f 20include $(XML_MANPAGE_H)
c3c459fc
AL
21
22# Examples
fcdd9cdd 23SOURCE = examples/apt.conf examples/sources.list examples/configure-index examples/apt-https-method-example.conf
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
2a52e8c5
DK
29doc: po4a
30 for dir in $(SUBDIRS); do\
31 $(MAKE) -C $$dir $@; \
32 done
9975c278 33
2a52e8c5
DK
34.PHONY: update-po po4a
35update-po:
36 po4a --previous --no-backups --force --no-translations po4a.conf
9975c278 37
2a52e8c5 38clean: po4a-clean clean-subdirs
f1813c1a 39
2a52e8c5
DK
40clean-subdirs:
41 for dir in $(SUBDIRS); do\
42 $(MAKE) -C $$dir $@; \
43 done
8667550d 44
2a52e8c5
DK
45po4a-clean:
46 po4a --previous --rm-backups --rm-translations po4a.conf
640c5d94 47
2a52e8c5
DK
48po4a:
49 po4a --previous --no-backups po4a.conf
3174e150
MV
50
51ifdef DOXYGEN
52DOXYGEN_SOURCES = $(shell find $(BASE)/apt-pkg -not -name .\\\#* -and \( -name \*.cc -or -name \*.h \) )
53
54clean: doxygen-clean
55
56doxygen-clean:
57 rm -fr $(BUILD)/doc/doxygen
58 rm -f $(BUILD)/doc/doxygen-stamp
59
60$(BUILD)/doc/Doxyfile: Doxyfile.in
61 (cd $(BUILD) && ./config.status doc/Doxyfile)
62
63$(BUILD)/doc/doxygen-stamp: $(DOXYGEN_SOURCES) $(BUILD)/doc/Doxyfile
64 rm -fr $(BUILD)/doc/doxygen
65 $(DOXYGEN) $(BUILD)/doc/Doxyfile
66 touch $(BUILD)/doc/doxygen-stamp
67
68doc: $(BUILD)/doc/doxygen-stamp
69
70endif