]> git.saurik.com Git - apt.git/blame - doc/makefile
disable addendum for sgml-files as we have no valid file until now
[apt.git] / doc / makefile
CommitLineData
ac966541
AL
1# -*- make -*-
2BASE=..
3164dff9 3SUBDIR=doc
b01390ea 4SUBDIRS= $(dir $(wildcard */makefile))
ac966541
AL
5
6# Bring in the default rules
7include ../buildlib/defaults.mak
8
b2e465d6 9# Debian Doc SGML Documents
7652e03e
DK
10SOURCE = $(wildcard *.sgml)
11DEBIANDOC_HTML_OPTIONS=-l en
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
b01390ea 29doc:
2a52e8c5
DK
30 for dir in $(SUBDIRS); do\
31 $(MAKE) -C $$dir $@; \
32 done
9975c278 33
b01390ea
DK
34clean: clean-subdirs
35veryclean: veryclean-subdirs
f1813c1a 36
2a52e8c5
DK
37clean-subdirs:
38 for dir in $(SUBDIRS); do\
b01390ea
DK
39 $(MAKE) -C $$dir clean; \
40 done
41
42veryclean-subdirs:
43 for dir in $(SUBDIRS); do\
44 $(MAKE) -C $$dir veryclean; \
2a52e8c5 45 done
944b2fff
DK
46 # FIXME remove created sgml files, but preserve all
47 # which are "left over" from older systems.
48 # After completing the transition this should be handled
49 # in the po4a-manpage makefile for all translations
41f28cb3 50 for dir in $(subst /addendum/,, $(dir $(wildcard */addendum/*))); do\
944b2fff
DK
51 rm -f $$dir/offline.$$dir.sgml; \
52 rm -f $$dir/guide.$$dir.sgml; \
53 done
8667550d 54
b01390ea
DK
55ifdef PO4A
56doc: po4a
57
58clean: po4a-clean
59
60.PHONY: update-po po4a
61update-po:
62 po4a --previous --no-backups --force --no-translations po4a.conf
63
2a52e8c5
DK
64po4a-clean:
65 po4a --previous --rm-backups --rm-translations po4a.conf
640c5d94 66
2a52e8c5
DK
67po4a:
68 po4a --previous --no-backups po4a.conf
b01390ea 69endif
3174e150
MV
70
71ifdef DOXYGEN
72DOXYGEN_SOURCES = $(shell find $(BASE)/apt-pkg -not -name .\\\#* -and \( -name \*.cc -or -name \*.h \) )
73
74clean: doxygen-clean
75
76doxygen-clean:
77 rm -fr $(BUILD)/doc/doxygen
78 rm -f $(BUILD)/doc/doxygen-stamp
79
80$(BUILD)/doc/Doxyfile: Doxyfile.in
81 (cd $(BUILD) && ./config.status doc/Doxyfile)
82
83$(BUILD)/doc/doxygen-stamp: $(DOXYGEN_SOURCES) $(BUILD)/doc/Doxyfile
84 rm -fr $(BUILD)/doc/doxygen
85 $(DOXYGEN) $(BUILD)/doc/Doxyfile
86 touch $(BUILD)/doc/doxygen-stamp
87
88doc: $(BUILD)/doc/doxygen-stamp
89
90endif