Subversion Repositories aldor-combinat

Compare Revisions

Ignore whitespace Rev 218 → Rev 219

/trunk/allprose/Makefile
6,6 → 6,7
#---
#------------------------------------------------------------------
 
SHELL = bash
THISDIR=.
export PROJECTROOT=$(CURDIR)
 
14,7 → 15,7
export ALLPROSELIBRARYNAME=myalps
export ALLPROSEMAJORVERSION=0
export ALLPROSEMINORVERSION=2
export ALLPROSEPATCHVERSION=3
export ALLPROSEPATCHVERSION=5
 
all: alldefault
 
120,7 → 121,7
texfiles: fileslist
$(MAKE) $(shell $(PERL) -pe 's/$$/.nw.filtered/' files.list)
$(NOWEAVEX) $(shell \
if [ -f $(projectname).lsf ]; then \
if [ -s $(projectname).lsf ]; then \
$(PERL) \
-e 'while(<>){' \
-e ' /^\\SourceFile \{(.*)\}$$/;' \
188,54 → 189,12
$(NWESCAPE) | $(NOTANGLE) -R"exports: $(*:extend.%=%)" | \
$(PERL) $(TOOLS)/showexports2aldordoc.pl $(*:extend.%=%) | \
$(PERL) $(TOOLS)/aldordoc2tex.pl > $@
# Generate files using latex, pdflatex, or latex in tex4ht variant.
LATEXINTERACTION=--interaction nonstopmode
LOADTEX4HT='\makeatletter\g@addto@macro\@documentclasshook{\RequirePackage[html,frames]{tex4ht}}\makeatother\input '
LATEX PDFLATEX: TEXARGUMENTS=$(LATEXINTERACTION)
HTLATEX: TEXARGUMENTS=$(LATEXINTERACTION) $(LOADTEX4HT)
LATEX PDFLATEX HTLATEX:
echo $@ $(projectname).tex;\
if ! $($@) $(TEXARGUMENTS) $(projectname).tex >> \
$(projectname).trace; then \
echo ============================================;\
echo $@ did not succeed.;\
echo A trace was written to $(projectname).trace.;\
echo Consult also $(projectname).log.;\
exit 1;\
fi
$(MAKE) $@.index bib undocumented
%TEX.rerun:
if $(GREP) Rerun $(projectname).log > /dev/null; then\
$(MAKE) $(@:%.rerun=%);\
fi
%TEX.all:
-$(RM) $(projectname).trace
$(MAKE) $(@:%.all=%) texfiles bib
$(MAKE) $(@:%.all=%.rerun)
$(MAKE) $(@:%.all=%.rerun)
$(MAKE) $(@:%.all=%.rerun)
@echo ===========================================================
# -@$(GREP) -i warning $(projectname).log | sort | uniq
-$(PERL) -e 'while(<>){if(/warning/i){$$A{$$_}=1}}'\
-e 'for $$l (sort keys %A){print $$l}' $(projectname).log
@echo ===========================================================
commonfiles: code allprose.sty $(projectname).sty texfiles docfiles
DOCDIR=$(PROJECTROOT)/doc
docdir:
$(MDparent) $(DOCDIR)
 
dvi: commonfiles LATEX.all docdir
dvi:
$(MAKE) TEXCMD=LATEX latex.all docdir
$(CP) $(projectname).dvi $(DOCDIR)
@echo
@echo "$(DVIVIEWER) $(DOCDIR)/$(projectname).dvi &"
@echo
 
pdf: commonfiles PDFLATEX.all docdir
$(CP) $(projectname).pdf $(DOCDIR)
@echo
@echo "$(PDFVIEWER) $(DOCDIR)/$(projectname).pdf &"
@echo
 
dvips: dvi
$(DVIPS) $(projectname).dvi
 
244,14 → 203,14
@echo
@echo "$(PSVIEWER) $(DOCDIR)/$(projectname).ps &"
@echo
 
tex4htlatex: commonfiles HTLATEX.all
 
tex4htpostproces: tex4htlatex
$(TEX4HT) -f/$(projectname)
$(T4HT) -f/$(projectname) -cvalidatehtml
 
html: tex4htlatex tex4htpostproces docdir
pdf:
$(MAKE) TEXCMD=PDFLATEX latex.all docdir
$(CP) $(projectname).pdf $(DOCDIR)
@echo
@echo "$(PDFVIEWER) $(DOCDIR)/$(projectname).pdf &"
@echo
html:
$(MAKE) TEXCMD=HTLATEX latex.all docdir tex4htpostprocess
$(CP) $(projectname)*.html $(DOCDIR)
$(CP) $(projectname)*.css $(DOCDIR)
-$(CP) $(projectname)*.png $(DOCDIR)
258,17 → 217,99
@echo
@echo "$(HTMLVIEWER) $(DOCDIR)/$(projectname).html &"
@echo
 
tex4htpostprocess:
$(TEX4HT) -f/$(projectname) -cmozhtf
$(T4HT) -f/$(projectname) -cvalidate
-$(RM) $(projectname).err
-xmllint --noout --valid --html *.html 2> $(projectname).err
-(if [ -s $(projectname).err ]; then \
echo "================================";\
echo "ERROR in checking generated HTML";\
echo "See $(projectname).err. ";\
echo "================================";\
else\
echo "=================";\
echo "Generated HTML OK";\
echo "=================";\
fi)
 
DOCDIR=$(PROJECTROOT)/doc
docdir:
$(MDparent) $(DOCDIR)
$(projectname).lsf:
$(MAKE) $(TEXCMD) texfiles undocumented
latex.all: code allprose.sty $(projectname).sty texfiles docfiles
-$(RM) $(projectname).trace
-$(RM) $(projectname).index
$(MAKE) $(projectname).lsf
$(MAKE) $(TEXCMD)
$(MAKE) $(projectname).bibliography
$(MAKE) $(projectname).index
$(MAKE) $(projectname).index
@echo ===========================================================
# -@$(GREP) -i warning $(projectname).log | sort | uniq
-$(PERL) -e 'while(<>){if(/warning/i){$$A{$$_}=1}}'\
-e 'for $$l (sort keys %A){print $$l}' $(projectname).log
@echo ===========================================================
$(projectname).bibliography:
if [ -f $(projectname).bbl ]; then \
$(CP) $(projectname).bbl tmp$$$$; \
$(MAKE) bib; \
if ! $(CMP) $(projectname).bbl tmp$$$$; then $(MAKE) $(TEXCMD); fi; \
$(RM) tmp$$$$; \
else \
$(MAKE) bib $(TEXCMD); \
fi
bib: $(projectname).bib
if $(GREP) '^\\citation{' $(projectname).aux > /dev/null; then\
$(BIBTEX) $(projectname); fi
$(projectname).index:
if [ -f $(projectname).ind ]; then \
$(CP) $(projectname).ind tmp$$$$; \
$(MAKE) $(TEXCMD).index; \
if $(CMP) $(projectname).ind tmp$$$$; then \
echo "EQUAL" > $@; \
else \
$(MAKE) $(TEXCMD); \
fi; \
$(RM) tmp$$$$; \
else \
$(MAKE) $(TEXCMD).index $(TEXCMD); \
$(MAKE) $(TEXCMD).index $(TEXCMD); \
fi
LATEX.index PDFLATEX.index:
if [ -f $(projectname).idx ]; then $(MAKEINDEX) $(projectname).idx; fi
$(projectname).rhx:
echo '\def\yeshasBar#1|#2!*?: #3{%' > $@
echo ' \immediate\write\idx{\indexentry\the\split{%' >> $@
echo ' #1|rhxLNK{#2}{\file}{\anchor}{\pointer}}{\the\entryNum' >> $@
echo '}}%' >> $@
echo ' \immediate\write\indexes{\string \indexmark\the\split{%' >> $@
echo ' #2}{\the\entryNum' >> $@
echo '}}}' >> $@
echo '\def\INPUTSOURCE#1#2#3#4{\input #1.idx}' >> $@
echo '\expandafter\INPUTSOURCE\filename\relax' >> $@
HTLATEX.index:
if [ -f $(projectname).idx ]; then \
$(TEX) '\def\filename{{$(projectname)}{idx}{4dx}{ind}}\input idxmake.4ht';\
$(MAKE) $(projectname).rhx; \
$(TEX) '\def\filename{{$(projectname)}{rhx}{4dx}{ind}}\input idxmake.4ht';\
$(MAKEINDEX) $(projectname).4dx;\
fi
bib: $(projectname).bib
if [ -f $(projectname).bib ]; then \
if $(GREP) '^\\citation{' $(projectname).aux > /dev/null; then\
$(BIBTEX) $(projectname); fi; fi
# Generate files using latex, pdflatex, or latex in tex4ht variant.
LATEXARGS =
PDFLATEXARGS=
HTLATEXARGS ='\makeatletter\g@addto@macro\@documentclasshook{\RequirePackage[xhtml,3,frames,next]{tex4ht}}\makeatother\input '
LATEX PDFLATEX HTLATEX:
echo $@ $(projectname).tex;\
if ! $($@) --interaction nonstopmode $($(@)ARGS) $(projectname).tex \
>> $(projectname).trace; then \
echo ============================================;\
echo $@ did not succeed.;\
echo A trace was written to $(projectname).trace.;\
echo Consult also $(projectname).log.;\
exit 1;\
fi
laptop:
@echo '\setlength{\textheight}{469.9626pt}' >> local.sty
@echo '\setlength{\topmargin}{-74.04881pt}' >> local.sty
299,8 → 340,14
@echo '\backgroundColor{verbatim}[rgb]{0.9,0.9,0.9}' >> local.sty
@echo '\backgroundColor{verbatiminput}[rgb]{0.9,0.7,1}' >> local.sty
@echo '\backgroundColor{showexports}[rgb]{0.9,0.7,1}' >> local.sty
@echo '\let\rhxidentdefs\nwidentdefs' >> local.sty
@echo '\let\rhxidentuses\nwidentuses' >> local.sty
@echo '\def\nwidentdefs#1{\textcolor[rgb]{1.0,0.5,0.5}{\rhxidentdefs{#1}}}' >> local.sty
@echo '\def\nwidentuses#1{\textcolor[rgb]{0.5,0.5,1.0}{\rhxidentuses{#1}}}' >> local.sty
include-allprose-documentation:
@echo '\IncludeALLPROSEDocumentationtrue' >> local.sty
show-projectroot:
@echo '\ShowPROJECTROOTtrue' >> local.sty
no-srcltx:
@echo '\SRCOKfalse' >> local.sty
no-usedef:
315,6 → 362,8
! -name '.cvsignore' \
! -regex '.*/CVS/.*' \
! -regex '.*/\.svn/.*' \
! -regex '.*/\.hg/.*' \
! -regex '.*/\.git/.*' \
! -regex '.*/\{arch\}/.*' \
! -regex '.*/\.arch-ids/.*' \
! -regex '.*/\.arch-inventory' \
/trunk/allprose/Makefile.def.allprose.nw
10,10 → 10,8
\section{User Customization of the Build Process}
\label{sec:ALLPROSE:UserCustomization}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
% The following \hypertarget is necessary, since no such \hypertarget
% command will be generated automatically. It's form should conform
% with the definition in \rhxsection.
% The following \hiddenhypertarget is necessary, since no
% corresponding \hypertarget command will be generated automatically.
\hiddenhypertarget{sf:Makefile.def.allprose}
 
 
/trunk/allprose/test/Makefile.nw
287,7 → 287,7
<<values for TCLIBRARYNAME and TCLIBPREFIX>>
${TCLIBPREFIX}%.as: %.as.nw $(TOOLS)/nwescape.pl
$(PERL) $(TOOLS)/aldordoc2codechunk.pl $< |\
$(NWESCAPE) | $(NOTANGLE) -L'--#line %L "$<"%N' > $@
$(NWESCAPE) | $(NOTANGLE) -L'#line %L "$<"%N' > $@
 
#redefine CODEFILES from Makefile.inc
CODEFILES += $(SRCS:%=$(TCLIBPREFIX)%.as)
/trunk/allprose/src/Makefile.nw
252,7 → 252,7
 
${LIBPREFIX}%.as: %.as.nw $(TOOLS)/nwescape.pl
$(PERL) $(TOOLS)/aldordoc2codechunk.pl $< |\
$(NWESCAPE) | $(NOTANGLE) -L'--#line %L "$<"%N' > $@
$(NWESCAPE) | $(NOTANGLE) -L'#line %L "$<"%N' > $@
 
#redefine CODEFILES from Makefile.inc
CODEFILES += $(SRCS:%=$(LIBPREFIX)%.as)
/trunk/allprose/Makefile.nw
52,6 → 52,7
#---
#------------------------------------------------------------------
 
SHELL = bash
THISDIR=.
export PROJECTROOT=$(CURDIR)
 
1760,6 → 1761,8
! -name '.cvsignore' \
! -regex '.*/CVS/.*' \
! -regex '.*/\.svn/.*' \
! -regex '.*/\.hg/.*' \
! -regex '.*/\.git/.*' \
! -regex '.*/\{arch\}/.*' \
! -regex '.*/\.arch-ids/.*' \
! -regex '.*/\.arch-inventory' \