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

Contents of /manuals/trunk/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2650 - (show annotations) (download)
Thu Dec 2 00:01:56 2004 UTC (8 years, 5 months ago) by djpig
File size: 1842 byte(s)
The release-notes are special cased, don't include them in the
general publish target.
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 developers-reference \
10 dictionary \
11 distribute-deb \
12 dselect-beginner \
13 euro-support \
14 faq \
15 fr \
16 intro-i18n \
17 java-faq \
18 maint-guide \
19 meta \
20 network-administrator \
21 programmer \
22 project-history \
23 quick-reference \
24 repository-howto \
25 securing-howto \
26 system-administrator \
27 tutorial \
28 user \
29 users-guide \
30
31 # documents with broken or newest Makefiles will be moved to the bottom
32
33 SUBDIRS-publish := $(addsuffix -publish,$(SUBDIRS))
34 SUBDIRS-clean := $(addsuffix -clean,$(SUBDIRS))
35
36 # dead (unmaintained) documentation, suitable for reaping
37 DEADDIRS := \
38 debiandoc-startup \
39 sgmltools-startup \
40 menu \
41 markup \
42 users_manual \
43 progeny-debian-manual \
44 # or just as archive without building them
45
46 # where we should publish to
47 PUBLISHDIR := /org/www.debian.org/www/doc/manuals
48 # How to install stuff in publish directory
49 install_file := install -p -m 664
50 install_dir := install -d -m 2775
51 # arguments to make publish
52 publish_args := PUBLISHDIR=$(PUBLISHDIR) install_file="$(install_file)" install_dir="$(install_dir)"
53
54 .SUFFIXES:
55 .PHONY: all publish clean $(SUBDIRS) $(SUBDIRS-publish) $(SUBDIRS-clean)
56
57 all: $(SUBDIRS)
58
59 publish::
60 [ -d $(PUBLISHDIR) ] || mkdir -p $(PUBLISHDIR)
61 publish:: $(SUBDIRS-publish)
62
63 clean: $(SUBDIRS-clean)
64
65 $(SUBDIRS):
66 -/usr/bin/time -f "%C took %E real, %U user, %S sys time" \
67 $(MAKE) -C $@
68
69 $(SUBDIRS-publish):
70 -/usr/bin/time -f "%C took %E real, %U user, %S sys time" \
71 $(MAKE) -C $(subst -publish,,$@) publish $(publish_args)
72
73 $(SUBDIRS-clean):
74 -/usr/bin/time -f "%C took %E real, %U user, %S sys time" \
75 $(MAKE) -C $(subst -clean,,$@) clean

  ViewVC Help
Powered by ViewVC 1.1.5