/[ddp]/manuals/trunk/securing-howto/Makefile
ViewVC logotype

Diff of /manuals/trunk/securing-howto/Makefile

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2749 by jseidel, Sun Jan 2 22:45:43 2005 UTC revision 2937 by jseidel, Fri Mar 25 22:07:27 2005 UTC
# Line 16  export PATH:=../quick-reference/bin/:${P Line 16  export PATH:=../quick-reference/bin/:${P
16    
17  export TEXMFCNF=texmf:  export TEXMFCNF=texmf:
18    
19    .SUFFIXES:
20    
21  # Following default shall be edited by the coordinator for the entire  # Following default shall be edited by the coordinator for the entire
22  # set of languages.  If a subsection owner wishes to override settings,  # set of languages.  If a subsection owner wishes to override settings,
23  # they can be overridden by running make with "make 'LANGS1=fi'" etc..  # they can be overridden by running make with "make 'LANGS1=fi'" etc..
# Line 42  BUILD_TYPE  := web Line 44  BUILD_TYPE  := web
44  PUBLISHDIR := ~/public_html/manuals.html  PUBLISHDIR := ~/public_html/manuals.html
45    
46  # List of languages built for "distclean" target for DDP:  # List of languages built for "distclean" target for DDP:
47  LANGSALL := en de fr es it ru ja  LANGSALL := en de fr es it ru ja zh-cn
48  # List of languages built for "publish" target for DDP  # List of languages built for "publish" target for DDP
49  LANGS := en de fr es it ru ja  LANGS    := en de fr es it ru ja
   
50    
51  # Files which affect SGML generation (excluding *.sgml)  # Files which affect SGML generation (excluding *.sgml)
52  SGMLENTS := custom.ent default.ent  SGMLENTS := custom.ent default.ent
# Line 115  $(MANUAL).%.sgml: $(MANUAL0).sgml Line 116  $(MANUAL).%.sgml: $(MANUAL0).sgml
116                  $< > $(MANUAL).$*.sgml                  $< > $(MANUAL).$*.sgml
117    
118  # HTML  # HTML
119    $(MANUAL).%.html.stamp: $(MANUAL).%.sgml $(MANUAL).%.ent $(SGMLSRCS)
120  $(MANUAL).%.html.stamp: $(MANUAL).%.sgml  $(MANUAL).%.ent $(wildcard %/*.sgml)          debiandoc2html -l $(subst pt-br,pt_BR,$*) -c $<
         debiandoc2html -l $* -c $<  
121  # since $(MANUAL).%.html/index.%.html cannot be a target file  # since $(MANUAL).%.html/index.%.html cannot be a target file
122          @for file in `ls $(MANUAL).$*.html/*` ; do\          @for file in `ls $(MANUAL).$*.html/*` ; do\
123          newfile=`echo $$file|\          newfile=`echo $$file|\
# Line 134  $(MANUAL).%.html.stamp: $(MANUAL).%.sgml Line 134  $(MANUAL).%.html.stamp: $(MANUAL).%.sgml
134  # TXT  # TXT
135    
136  $(MANUAL).%.txt: $(MANUAL).%.sgml $(MANUAL).%.ent $(SGMLSRCS)  $(MANUAL).%.txt: $(MANUAL).%.sgml $(MANUAL).%.ent $(SGMLSRCS)
137          debiandoc2text -l     $* $<          debiandoc2text -l $(subst pt-br,pt_BR,$*) $<
138    
139    
140  # PS  # PS
141    
142  $(MANUAL).%.ps: $(MANUAL).%.sgml $(MANUAL).%.ent $(SGMLSRCS)  $(MANUAL).%.ps: $(MANUAL).%.sgml $(MANUAL).%.ent $(SGMLSRCS)
143          debiandoc2latexps -l  $(subst pt-br,pt_BR,$*) $<          debiandoc2latexps -l $(subst pt-br,pt_BR,$*) $<
144    
145  # PDF  # PDF
146    
147  $(MANUAL).%.pdf: $(MANUAL).%.sgml $(MANUAL).%.ent $(SGMLSRCS)  $(MANUAL).%.pdf: $(MANUAL).%.sgml $(MANUAL).%.ent $(SGMLSRCS)
148          debiandoc2latexpdf -l $* $<          debiandoc2latexpdf -l $(subst pt-br,pt_BR,$*) $<
149    
150    
151  # =================================================================== #  # =================================================================== #
# Line 157  publish-html: html Line 157  publish-html: html
157             || install -d -m 755 $(PUBLISHDIR)/$(MANUAL)             || install -d -m 755 $(PUBLISHDIR)/$(MANUAL)
158          rm -f $(PUBLISHDIR)/$(MANUAL)/*.html          rm -f $(PUBLISHDIR)/$(MANUAL)/*.html
159          # install all html          # install all html
160          @$(foreach lang,$(LANGS),\          $(foreach lang,$(LANGS),\
161           install -p -m 644 $(MANUAL).$(lang).html/*.html \           install -p -m 644 $(MANUAL).$(lang).html/*.html \
162                    $(PUBLISHDIR)/$(MANUAL)/ ;\                    $(PUBLISHDIR)/$(MANUAL)/ ;\
163          )          )
# Line 209  distclean: clean Line 209  distclean: clean
209  clean:  clean:
210          rm -f $(MANUAL)*.{txt,ps,dvi,pdf,info*,log,tex,aux,toc,sasp*,out,tov}          rm -f $(MANUAL)*.{txt,ps,dvi,pdf,info*,log,tex,aux,toc,sasp*,out,tov}
211          rm -f *~ prior.aux pprior.aux tar.gz.log          rm -f *~ prior.aux pprior.aux tar.gz.log
212          rm -f *.error $(MANUAL).*.ent date.ent $(MANUAL).*.tpt          rm -f *.error $(MANUAL).*.ent $(MANUAL).*.sgml date.ent $(MANUAL).*.tpt
213          rm -rf $(MANUAL)*.html *stamp          rm -rf $(MANUAL)*.html *stamp
214    
215  .PHONY: all html text txt ps pdf \  .PHONY: all html text txt ps pdf \

Legend:
Removed from v.2749  
changed lines
  Added in v.2937

  ViewVC Help
Powered by ViewVC 1.1.5