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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2757 - (show annotations) (download)
Sat Jan 8 14:59:29 2005 UTC (8 years, 5 months ago) by jseidel
File size: 2193 byte(s)
../dynamic.ent not dynamic.ent is a .PHONY: target (this makefile is called
from translation directories).

Makefile.common checked in the past only that dynamic_$(architecture).ent
exists otherwise it created this file and linked dynamic.ent to it.
But if dynamic_$(architecture).ent already exists and if dynamic.ent is a
proper link it will not update the link to refer to the new architecture.

The publish target wasn't affected since it performed a make clean first
so that the links where properly created.
1 #
2 # Makefile for the release notes, language subdirectory
3 #
4
5 manual := release-notes
6 release := sarge
7
8 export PATH:=../../quick-reference/bin/:${PATH}
9
10 currentlang := $(notdir $(CURDIR))
11 currentlangcn := $(subst _,-,$(shell echo $(currentlang) | tr A-Z a-z))
12
13 # this can and will be overriden by a higher level makefile
14 PUBLISHDIR := /org/www.debian.org/www/releases/$(release)
15
16 sources := $(wildcard *.sgml) ../$(manual).ent ../dynamic.ent
17
18 export LANG=C
19 # stupid debiandoc stuff uses strings in another language otherwise
20
21 all: html text ps pdf
22
23 publish: all
24 test -d $(PUBLISHDIR)/$(manual) || install -d -m 755 $(PUBLISHDIR)/$(manual)
25 rm -f $(PUBLISHDIR)/$(manual)/*.$(currentlangcn).html
26 install -p -m 644 $(manual).$(currentlang).html/*.html $(PUBLISHDIR)/$(manual)
27 install -p -m 644 $(manual)*.txt $(manual)*.ps $(manual)*.pdf $(PUBLISHDIR)/$(manual)
28
29 validate:
30 nsgmls -ges -wall $(manual).$(currentlang).sgml
31
32 html: $(manual).$(currentlang).html/index.$(currentlangcn).html
33 $(manual).$(currentlang).html/index.$(currentlangcn).html: $(sources)
34 debiandoc2html -c -l $(currentlang) $<
35
36 text: $(manual).$(currentlang).txt
37 $(manual).$(currentlang).txt: $(sources)
38 debiandoc2text -l $(currentlang) $<
39
40 $(manual).$(currentlang).info: $(sources)
41 debiandoc2info -l $(currentlang) $<
42 # TODO: rename to .$(currentlang).info?
43
44 $(manual).$(currentlang).ps $(manual).$(currentlang).dvi $(manual).$(currentlang).pdf: \
45 $(manual).$(currentlang).%: $(sources)
46 debiandoc2latex$* -l $(currentlang) $<
47
48 ps dvi pdf info: %: $(manual).$(currentlang).%
49
50 # generate entities which are dynamically defined by the settings of this
51 # build run
52 ../dynamic_$(architecture).ent:
53 ifeq "$(architecture)" ""
54 @echo architecture variable must be set
55 exit 1
56 endif
57 : > $@ # clear the file
58 echo "<!entity architecture \"$(architecture)\">" >> $@
59 echo "<!entity % $(architecture) \"INCLUDE\">" >> $@
60
61 .PHONY: ../dynamic.ent
62 ../dynamic.ent: ../dynamic_$(architecture).ent
63 rm -f $@
64 ln -s $(notdir $<) $@
65
66 clean distclean:
67 rm -rf $(manual)*.$(currentlang).html
68 rm -f $(manual)*.{txt,ps,dvi,pdf,info*,aux,log,man,tex,toc,sasp*,tpt}
69 rm -f *~ .*~ core tsa*
70
71 .PHONY: all publish clean distclean validate

  ViewVC Help
Powered by ViewVC 1.1.5