mirror of
https://github.com/boostorg/iterator.git
synced 2025-05-12 14:01:37 +00:00
Separate scanning of .rst and .tex files
[SVN r21673]
This commit is contained in:
parent
1033aeb186
commit
a5c4497c01
@ -48,7 +48,7 @@ PRINTZIP = prints.zip
|
|||||||
SLIDEZIP = slides.zip
|
SLIDEZIP = slides.zip
|
||||||
|
|
||||||
# ... Depend
|
# ... Depend
|
||||||
DEPENDFILE = .depend
|
DEPENDFILES = .depend .depend-rst
|
||||||
GENFILE = .generated
|
GENFILE = .generated
|
||||||
|
|
||||||
# ... List of extensions and files generated
|
# ... List of extensions and files generated
|
||||||
@ -58,7 +58,7 @@ mpxcrap = mpxerr.tex mpxerr.pdf
|
|||||||
|
|
||||||
generated = *.out *.[0-9] *.[0-9][0-9] *.bbl *.brf \
|
generated = *.out *.[0-9] *.[0-9][0-9] *.bbl *.brf \
|
||||||
*.mp *.mmp *.pdf .depend *.ps TMP-*.pdf *.ftoc\
|
*.mp *.mmp *.pdf .depend *.ps TMP-*.pdf *.ftoc\
|
||||||
${PRINTZIP} ${SLIDEZIP} ${GENFILE} ${DEPENDFILE} \
|
${PRINTZIP} ${SLIDEZIP} ${GENFILE} ${DEPENDFILES} \
|
||||||
${texcrap} ${mpxcrap} ${CUTFOILS} $(strip $(wildcard *---*.tex))
|
${texcrap} ${mpxcrap} ${CUTFOILS} $(strip $(wildcard *---*.tex))
|
||||||
|
|
||||||
|
|
||||||
@ -185,7 +185,7 @@ cleanup-crap:
|
|||||||
@${RMRF} ${mpxcrap}
|
@${RMRF} ${mpxcrap}
|
||||||
|
|
||||||
# ... Target: all
|
# ... Target: all
|
||||||
all: cleanup-crap .depend ${PDFFILES} ${PRINTS} ${PRINTZIP} ${SLIDEZIP}
|
all: cleanup-crap ${DEPENDFILES} ${PDFFILES} ${PRINTS} ${PRINTZIP} ${SLIDEZIP}
|
||||||
@${ECHO} ""
|
@${ECHO} ""
|
||||||
@${TOUCH} ${GENFILE}
|
@${TOUCH} ${GENFILE}
|
||||||
@${CAT} ${GENFILE}
|
@${CAT} ${GENFILE}
|
||||||
@ -211,7 +211,7 @@ clean:
|
|||||||
${RMRF} ${generated}
|
${RMRF} ${generated}
|
||||||
|
|
||||||
# ... Target: create dependencies
|
# ... Target: create dependencies
|
||||||
depend: .depend
|
depend: .depend .depend-rst
|
||||||
|
|
||||||
# ... Target: dependency file (parse TEXFILES for multiinclude and includegraphics)
|
# ... Target: dependency file (parse TEXFILES for multiinclude and includegraphics)
|
||||||
.depend: GNUmakefile ${TEXFILES}
|
.depend: GNUmakefile ${TEXFILES}
|
||||||
@ -221,6 +221,9 @@ depend: .depend
|
|||||||
${PERL} -e 'my $$target = shift @ARGV;' -e 'while (<>) { /\\multiinclude(\[.*?\])?{(.*?)}/ && print "$$target: $$2.0\n";}' $$t.pdf < $$t.tex >> $@; \
|
${PERL} -e 'my $$target = shift @ARGV;' -e 'while (<>) { /\\multiinclude(\[.*?\])?{(.*?)}/ && print "$$target: $$2.0\n";}' $$t.pdf < $$t.tex >> $@; \
|
||||||
${PERL} -e 'my $$target = shift @ARGV;' -e 'while (<>) { /\\includegraphics(\[.*?\])?{(.*?)\.(.*?)}/ && print "$$target: $$2.$$3\n";}' $$t.pdf < $$t.tex >> $@; \
|
${PERL} -e 'my $$target = shift @ARGV;' -e 'while (<>) { /\\includegraphics(\[.*?\])?{(.*?)\.(.*?)}/ && print "$$target: $$2.$$3\n";}' $$t.pdf < $$t.tex >> $@; \
|
||||||
done
|
done
|
||||||
|
|
||||||
|
.depend-rst: GNUmakefile ${RSTFILES}
|
||||||
|
${RMRF} $@
|
||||||
@for t in ${RSTSTEMS} ; do \
|
@for t in ${RSTSTEMS} ; do \
|
||||||
${ECHO} "Scanning $$t.rst"; \
|
${ECHO} "Scanning $$t.rst"; \
|
||||||
${PERL} -e 'my $$target = shift @ARGV;' -e 'while (<>) { /^\.\. include::\s+(.*)/ && print "$$target: $$1\n";}' $$t.html < $$t.rst >> $@; \
|
${PERL} -e 'my $$target = shift @ARGV;' -e 'while (<>) { /^\.\. include::\s+(.*)/ && print "$$target: $$1\n";}' $$t.html < $$t.rst >> $@; \
|
||||||
@ -228,5 +231,6 @@ depend: .depend
|
|||||||
done
|
done
|
||||||
|
|
||||||
|
|
||||||
# ... include dependency file
|
# ... include dependency files
|
||||||
-include .depend
|
-include .depend
|
||||||
|
-include .depend-rst
|
||||||
|
Loading…
x
Reference in New Issue
Block a user