/[ddp]/manuals/trunk/Makefile
ViewVC logotype

Contents of /manuals/trunk/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2283 - (show annotations) (download)
Tue May 6 15:44:46 2003 UTC (10 years ago) by osamu
File size: 1859 byte(s)
Until new debiandoc-sgml is installed, keep it at the last :-)
1 # Top-level makefile for the Debian Documentation Project manuals
2
3 # live documentation
4 SUBDIRS := \
5 apt-howto \
6 book-suggestions \
7 ddp-policy \
8 debian-bugs \
9 dictionary \
10 distribute-deb \
11 dselect-beginner \
12 euro-support \
13 faq \
14 fr \
15 intro-i18n \
16 java-faq \
17 maint-guide \
18 meta \
19 network-administrator \
20 programmer \
21 project-history \
22 quick-reference \
23 release-notes \
24 repository-howto \
25 securing-howto \
26 system-administrator \
27 tutorial \
28 user \
29 users-guide \
30 developers-reference \
31
32 # documents with broken or newest Makefiles will be moved to the bottom
33
34 SUBDIRS-publish := $(addsuffix -publish,$(SUBDIRS))
35 SUBDIRS-clean := $(addsuffix -clean,$(SUBDIRS))
36
37 # dead (unmaintained) documentation, suitable for reaping
38 DEADDIRS := \
39 debiandoc-startup \
40 sgmltools-startup \
41 menu \
42 markup \
43 users_manual \
44 progeny-debian-manual \
45 # or just as archive without building them
46
47 # where we should publish to
48 PUBLISHDIR := /org/www.debian.org/www/doc/manuals
49 # How to install stuff in publish directory
50 install_file := install -p -m 664
51 install_dir := install -d -m 2775
52 # arguments to make publish
53 publish_args := PUBLISHDIR=$(PUBLISHDIR) install_file="$(install_file)" install_dir="$(install_dir)"
54
55 .SUFFIXES:
56 .PHONY: all publish clean $(SUBDIRS) $(SUBDIRS-publish) $(SUBDIRS-clean)
57
58 all: $(SUBDIRS)
59
60 publish::
61 [ -d $(PUBLISHDIR) ] || mkdir -p $(PUBLISHDIR)
62 publish:: $(SUBDIRS-publish)
63
64 clean: $(SUBDIRS-clean)
65
66 $(SUBDIRS):
67 /usr/bin/time -f "%C took %E real, %U user, %S sys time" \
68 $(MAKE) -C $@
69
70 $(SUBDIRS-publish):
71 /usr/bin/time -f "%C took %E real, %U user, %S sys time" \
72 $(MAKE) -C $(subst -publish,,$@) publish $(publish_args)
73
74 $(SUBDIRS-clean):
75 /usr/bin/time -f "%C took %E real, %U user, %S sys time" \
76 $(MAKE) -C $(subst -clean,,$@) clean

  ViewVC Help
Powered by ViewVC 1.1.5