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))
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 ;\
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment