/[ddp]/manuals/trunk/release-notes/Makefile
ViewVC logotype

Contents of /manuals/trunk/release-notes/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4524 - (hide annotations) (download)
Sun Apr 8 12:56:11 2007 UTC (6 years, 1 month ago) by jseidel
File size: 3068 byte(s)
Updated Swedish translation from http://home.danielnylander.se/debian/release-notes/
1 joy 2049 #
2     # Makefile for the release notes, top-level
3     #
4    
5 fjp 4027 # m68k port is included in the source, but should not be built by default
6     # as the port is not supported for Etch but may yet be for Lenny.
7     # It can still be built by explicitly specifying 'architecture=m68k'
8     arches := $(shell grep '\[ <!entity arch-title' release-notes.ent | awk '{print $$2}' | sed s/%// | grep -v 'm68k')
9 joy 2049
10     ifeq "$(OFFICIALWEBBUILD)" "true"
11     install_file := install -m 2664 -p
12     makedir := mkdir -p -m 2775
13     else
14     install_file := install -m 644 -p
15     makedir := mkdir -p -m 0755
16     endif
17    
18 jseidel 3919 # vi: Not supported by the Sarge build system (lets ask the webmaster for an upload?)
19 robster 3894 # All translations disabled; will be enabled as updates for Etch come in
20 jseidel 4524 LANGUAGES := en ca cs de es fi fr it pt pt_BR ro sv
21 joy 2049
22     LANGUAGES-publish := $(addsuffix -publish,$(LANGUAGES))
23     LANGUAGES-clean := $(addsuffix -clean,$(LANGUAGES))
24    
25     .SUFFIXES:
26     .PHONY: publish all clean $(LANGUAGES) $(LANGUAGES-publish)
27    
28     all: $(LANGUAGES)
29    
30     $(LANGUAGES):
31 jseidel 3333 -$(MAKE) -C $@
32 joy 2049
33 robster 2640 publish: clean
34 joy 2049 ifneq "$(PUBLISHDIR)" ""
35 fjp 4452 # This branch is used for official website builds
36 joy 2049 set -ex; \
37     for arch in $(arches); do \
38     $(MAKE) architecture=$$arch; \
39 robster 2640 $(makedir) $(PUBLISHDIR)/$$arch/release-notes; \
40 djpig 3361 $(makedir) release-notes-$$arch; \
41 joy 2049 for lang in $(LANGUAGES); do \
42 djpig 3361 $(makedir) release-notes-$$arch/$$lang; \
43 robster 2640 $(install_file) $$lang/release-notes.$$lang.html/* $(PUBLISHDIR)/$$arch/release-notes/; \
44     $(install_file) $$lang/release-notes.$$lang.txt $(PUBLISHDIR)/$$arch/; \
45 robster 2755 $(install_file) $$lang/release-notes.$$lang.pdf $(PUBLISHDIR)/$$arch/; \
46     $(install_file) $$lang/release-notes.$$lang.ps $(PUBLISHDIR)/$$arch/; \
47 djpig 3361 $(install_file) $$lang/release-notes.$$lang.html/* release-notes-$$arch/$$lang; \
48     $(install_file) $$lang/release-notes.$$lang.txt release-notes-$$arch/$$lang; \
49     $(install_file) $$lang/release-notes.$$lang.pdf release-notes-$$arch/$$lang; \
50 joy 2049 done; \
51 robster 2640 for i in $(PUBLISHDIR)/$$arch/release-notes/*.en.html; do \
52 djpig 3395 ln -sf `basename $$i` $${i%.en.html}.html; \
53 joy 2049 done; \
54 djpig 3386 if [ -n "$(PUBLISHTARBALL)" ]; then (cd release-notes-$$arch && tar czf $(PUBLISHDIR)/release-notes-$$arch.tar.gz *); fi \
55 joy 2049 done
56     else
57 fjp 4452 # This branch is probably no longer used (FJP 20060406)
58 joy 2049 set -e; \
59     for arch in $(arches); do \
60     $(MAKE) architecture=$$arch; \
61     $(makedir) upgrade-$$arch; \
62     for lang in $(LANGUAGES); do \
63     $(install_file) $$lang/release-notes.$$lang.html/* upgrade-$$arch; \
64     $(install_file) $$lang/release-notes.$$lang.txt upgrade-$$arch; \
65 jseidel 2857 $(install_file) $$lang/release-notes.$$lang.pdf upgrade-$$arch; \
66 joy 2049 done; \
67     ln -sf index.en.html upgrade-$$arch/index.html; \
68     ln -sf release-notes.en.txt upgrade-$$arch/Release-Notes; \
69     done
70 jseidel 2857 tar cjf relnotes.tar.bz2 upgrade-*
71 jseidel 4475 rm -rf upgrade-*
72 joy 2049 endif
73    
74     clean::
75     rm -f dynamic*.ent relnotes.tar.bz2
76 jseidel 3930 find -maxdepth 1 -name 'release-notes-*' -type d -exec rm -fr {} \;
77 joy 2049 clean:: $(LANGUAGES-clean)
78    
79     $(LANGUAGES-clean):
80     $(MAKE) -C $(subst -clean,,$@) clean

  ViewVC Help
Powered by ViewVC 1.1.5