copying fixes over from sTeX
This commit is contained in:
parent
6284b783bd
commit
f86d107546
@ -18,7 +18,8 @@
|
|||||||
|
|
||||||
HERE = $(shell pwd)
|
HERE = $(shell pwd)
|
||||||
TMP = /tmp
|
TMP = /tmp
|
||||||
TDSCOLL ?= $(shell basename $$PWD)
|
#TDSCOLL ?= $(shell basename $$PWD)
|
||||||
|
TDSCOLL = proposal
|
||||||
EXPORTED = $(TMP)/$(TDSCOLL).exp
|
EXPORTED = $(TMP)/$(TDSCOLL).exp
|
||||||
TDSDIR = $(TMP)/$(TDSCOLL).tds
|
TDSDIR = $(TMP)/$(TDSCOLL).tds
|
||||||
TDSZIP = $(TMP)/$(TDSCOLL).tds.zip
|
TDSZIP = $(TMP)/$(TDSCOLL).tds.zip
|
||||||
|
@ -5,7 +5,7 @@ doc: $(DTX.pdf) $(EXAMPLE.pdf)
|
|||||||
|
|
||||||
$(EXAMPLE.pdf): %.pdf: %.tex $(DTX.sty) $(DTX.cls) $(IMG) $(EXAMPLE.deps)
|
$(EXAMPLE.pdf): %.pdf: %.tex $(DTX.sty) $(DTX.cls) $(IMG) $(EXAMPLE.deps)
|
||||||
$(PDFLATEX) $(firstword $<)
|
$(PDFLATEX) $(firstword $<)
|
||||||
@if (grep Citation $(patsubst %.dtx, %.log, $(firstword $<)) > /dev/null);\
|
@if (grep 'Please (re)run Biber' $(patsubst %.dtx, %.log, $(firstword $<)) > /dev/null);\
|
||||||
then biber $(patsubst %.dtx, %, $(firstword $<));fi
|
then biber $(patsubst %.dtx, %, $(firstword $<));fi
|
||||||
@if (grep "Writing index file" $(patsubst %.dtx, %.log, $(firstword $<)) > /dev/null);\
|
@if (grep "Writing index file" $(patsubst %.dtx, %.log, $(firstword $<)) > /dev/null);\
|
||||||
then makeindex\
|
then makeindex\
|
||||||
@ -25,7 +25,7 @@ ltxml: $(DTX.ltxml)
|
|||||||
$(DTX.pdf): %.pdf: %.dtx $(IMG)
|
$(DTX.pdf): %.pdf: %.dtx $(IMG)
|
||||||
$(PDFLATEX) $(patsubst %.pdf,%.ins,$@)
|
$(PDFLATEX) $(patsubst %.pdf,%.ins,$@)
|
||||||
$(PDFLATEX) $(firstword $<)
|
$(PDFLATEX) $(firstword $<)
|
||||||
@if (grep Citation $(patsubst %.dtx, %.log, $(firstword $<)) > /dev/null);\
|
@if (grep 'Please (re)run Biber' $(patsubst %.dtx, %.log, $(firstword $<)) > /dev/null);\
|
||||||
then biber $(patsubst %.dtx, %, $(firstword $<));fi
|
then biber $(patsubst %.dtx, %, $(firstword $<));fi
|
||||||
@if (grep "Writing glossary file" $(patsubst %.dtx, %.log, $(firstword $<)) > /dev/null);\
|
@if (grep "Writing glossary file" $(patsubst %.dtx, %.log, $(firstword $<)) > /dev/null);\
|
||||||
then makeindex\
|
then makeindex\
|
||||||
@ -43,15 +43,15 @@ $(DTX.pdf): %.pdf: %.dtx $(IMG)
|
|||||||
$(DTX.sty): %.sty: %.ins %.dtx
|
$(DTX.sty): %.sty: %.ins %.dtx
|
||||||
$(PDFLATEX) $<
|
$(PDFLATEX) $<
|
||||||
|
|
||||||
|
$(DTX.cls): %.cls: %.ins %.dtx
|
||||||
|
$(PDFLATEX) $<
|
||||||
|
|
||||||
$(DTX.sty.ltxml): %.sty.ltxml: %.ins %.dtx
|
$(DTX.sty.ltxml): %.sty.ltxml: %.ins %.dtx
|
||||||
$(PDFLATEX) $<
|
$(PDFLATEX) $<
|
||||||
|
|
||||||
$(DTX.cls.ltxml): %.cls.ltxml: %.ins %.dtx
|
$(DTX.cls.ltxml): %.cls.ltxml: %.ins %.dtx
|
||||||
$(PDFLATEX) $<
|
$(PDFLATEX) $<
|
||||||
|
|
||||||
$(DTX.cls): %.cls: %.ins %.dtx
|
|
||||||
$(PDFLATEX) $<
|
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f *~ *.log *.ilg *.out *.glo *.idx *.ilg *.blg
|
rm -f *~ *.log *.ilg *.out *.glo *.idx *.ilg *.blg
|
||||||
|
|
||||||
|
@ -24,6 +24,7 @@ CTANDIR = /tmp/$(TDSCOLL)/$(CTANPREFIX)$(PACKAGE)
|
|||||||
# the dependencies
|
# the dependencies
|
||||||
SOURCES = $(DTX.sty) $(BIB)
|
SOURCES = $(DTX.sty) $(BIB)
|
||||||
TEXINPUTS := .:$(PREFIX)//:
|
TEXINPUTS := .:$(PREFIX)//:
|
||||||
|
BIBINPUTS := .:$(PREFIX)/../bib//:
|
||||||
BSTINPUTS := .:$(PREFIX)//:
|
BSTINPUTS := .:$(PREFIX)//:
|
||||||
|
|
||||||
# we want to quiet down pdflatex
|
# we want to quiet down pdflatex
|
||||||
|
Loading…
Reference in New Issue
Block a user