| 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.. |
| 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 |
| 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|\ |
| 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 |
# =================================================================== # |
# =================================================================== # |
| 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 |
) |
) |
| 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 \ |