From 67af7908862139e1dc4c966e1dcd984d2db0592b Mon Sep 17 00:00:00 2001 From: "J.F.J. Laros" <j.f.j.laros@lumc.nl> Date: Mon, 11 Aug 2014 21:04:41 +0200 Subject: [PATCH] Added pstex functionality. --- Makefile | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 8bd33d9..1ad17cd 100644 --- a/Makefile +++ b/Makefile @@ -30,7 +30,6 @@ FIG_PIC := $(basename $(shell ls *.fig)) GNP := $(basename $(shell ls *.gnp)) PIC_EXT := dot gif jpg png ppm svg xcf bmp PIC := $(foreach I, $(PIC_EXT), $(basename $(shell ls *.$I))) -#PIC_EPS := $(addsuffix .eps, $(PIC)) # Output. PDF := $(addsuffix .pdf, $(SRC)) @@ -46,9 +45,11 @@ TNP := $(addsuffix .tnp, $(GNP)) BIB := $(addsuffix .bbl, $(SRC)) GLS := $(addsuffix .gls, $(GLS)) EPS := $(addsuffix .eps, $(DIA_PIC) $(FIG_PIC) $(GNP) $(PIC)) +TEX_T_EXT := pstex pstex_t +TEX_T := $(foreach I, $(TEX_T_EXT), $(addsuffix .$I, $(FIG_PIC))) # Do not delete the semi-permanent files automatically. -.PRECIOUS: $(BIB) $(GLS) $(EPS) +.PRECIOUS: $(BIB) $(GLS) $(EPS) $(TEX_T) # Disable built-in rules. .SUFFIXES: @@ -69,7 +70,7 @@ clean: rm -f $(foreach I, $(TMP), $(addsuffix .$I, $(SRC))) $(PNG) $(TNP) distclean: clean - rm -f $(PDF) $(RTF) $(DOC) $(BIB) $(EPS) + rm -f $(PDF) $(RTF) $(DOC) $(BIB) $(EPS) $(TEX_T) release: all clean @@ -113,6 +114,12 @@ release: all clean %.eps: %.fig $(FIG2DEV) -L eps $< $@ +%.pstex: %.fig + $(FIG2DEV) -L pstex $< $@ + +%.pstex_t: %.fig %.pstex + $(FIG2DEV) -L pstex_t -p $(word 2, $^) $< $@ + # BibTeX targets (called recursively). @@ -138,7 +145,7 @@ release: all clean # LaTeX build targets. -%.aux: %.tex $(EPS) +%.aux: %.tex $(EPS) $(TEX_T) $(TEX) $< ;\ if (grep -s "LaTeX Warning: Citation" $*.log); then \ $(MAKE) $*.bbl ;\ -- GitLab