Skip to content
Snippets Groups Projects
Commit 67af7908 authored by Laros's avatar Laros
Browse files

Added pstex functionality.

parent ef45a090
No related branches found
No related tags found
No related merge requests found
...@@ -30,7 +30,6 @@ FIG_PIC := $(basename $(shell ls *.fig)) ...@@ -30,7 +30,6 @@ FIG_PIC := $(basename $(shell ls *.fig))
GNP := $(basename $(shell ls *.gnp)) GNP := $(basename $(shell ls *.gnp))
PIC_EXT := dot gif jpg png ppm svg xcf bmp PIC_EXT := dot gif jpg png ppm svg xcf bmp
PIC := $(foreach I, $(PIC_EXT), $(basename $(shell ls *.$I))) PIC := $(foreach I, $(PIC_EXT), $(basename $(shell ls *.$I)))
#PIC_EPS := $(addsuffix .eps, $(PIC))
# Output. # Output.
PDF := $(addsuffix .pdf, $(SRC)) PDF := $(addsuffix .pdf, $(SRC))
...@@ -46,9 +45,11 @@ TNP := $(addsuffix .tnp, $(GNP)) ...@@ -46,9 +45,11 @@ TNP := $(addsuffix .tnp, $(GNP))
BIB := $(addsuffix .bbl, $(SRC)) BIB := $(addsuffix .bbl, $(SRC))
GLS := $(addsuffix .gls, $(GLS)) GLS := $(addsuffix .gls, $(GLS))
EPS := $(addsuffix .eps, $(DIA_PIC) $(FIG_PIC) $(GNP) $(PIC)) 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. # Do not delete the semi-permanent files automatically.
.PRECIOUS: $(BIB) $(GLS) $(EPS) .PRECIOUS: $(BIB) $(GLS) $(EPS) $(TEX_T)
# Disable built-in rules. # Disable built-in rules.
.SUFFIXES: .SUFFIXES:
...@@ -69,7 +70,7 @@ clean: ...@@ -69,7 +70,7 @@ clean:
rm -f $(foreach I, $(TMP), $(addsuffix .$I, $(SRC))) $(PNG) $(TNP) rm -f $(foreach I, $(TMP), $(addsuffix .$I, $(SRC))) $(PNG) $(TNP)
distclean: clean distclean: clean
rm -f $(PDF) $(RTF) $(DOC) $(BIB) $(EPS) rm -f $(PDF) $(RTF) $(DOC) $(BIB) $(EPS) $(TEX_T)
release: all clean release: all clean
...@@ -113,6 +114,12 @@ release: all clean ...@@ -113,6 +114,12 @@ release: all clean
%.eps: %.fig %.eps: %.fig
$(FIG2DEV) -L eps $< $@ $(FIG2DEV) -L eps $< $@
%.pstex: %.fig
$(FIG2DEV) -L pstex $< $@
%.pstex_t: %.fig %.pstex
$(FIG2DEV) -L pstex_t -p $(word 2, $^) $< $@
# BibTeX targets (called recursively). # BibTeX targets (called recursively).
...@@ -138,7 +145,7 @@ release: all clean ...@@ -138,7 +145,7 @@ release: all clean
# LaTeX build targets. # LaTeX build targets.
%.aux: %.tex $(EPS) %.aux: %.tex $(EPS) $(TEX_T)
$(TEX) $< ;\ $(TEX) $< ;\
if (grep -s "LaTeX Warning: Citation" $*.log); then \ if (grep -s "LaTeX Warning: Citation" $*.log); then \
$(MAKE) $*.bbl ;\ $(MAKE) $*.bbl ;\
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment