Commit ef45a090 authored by Jeroen F.J. Laros's avatar Jeroen F.J. Laros

Added functionality for FIG files, fixed gnuplot bug.

parent 4df24322
......@@ -15,6 +15,7 @@ LIBREOFFICE := libreoffice
# Pictures.
DIA := dia
DOT := dot
FIG2DEV := fig2dev
CONVERT := convert
GNUPLOT := gnuplot
FONTSIZE := 20
......@@ -25,6 +26,7 @@ FONTSIZE := 20
# Find the input files.
SRC := $(basename $(shell grep -l '\\begin{document}' *.tex))
DIA_PIC := $(basename $(shell ls *.dia))
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)))
......@@ -43,7 +45,7 @@ TNP := $(addsuffix .tnp, $(GNP))
# Semi-permanent files.
BIB := $(addsuffix .bbl, $(SRC))
GLS := $(addsuffix .gls, $(GLS))
EPS := $(addsuffix .eps, $(DIA_PIC) $(GNP) $(PIC))
EPS := $(addsuffix .eps, $(DIA_PIC) $(FIG_PIC) $(GNP) $(PIC))
# Do not delete the semi-permanent files automatically.
.PRECIOUS: $(BIB) $(GLS) $(EPS)
......@@ -102,12 +104,15 @@ release: all clean
$(CONVERT) $< $@
%.tnp: %.gnp $(DEP)
echo "set terminal postscript color eps font \"default,$(FONTSIZE)\"" > $@ ;\
echo "set terminal postscript color eps font \"Helvetica,$(FONTSIZE)\"" > $@ ;\
cat $< >> $@
%.eps: %.tnp
$(GNUPLOT) < $< > $@
%.eps: %.fig
$(FIG2DEV) -L eps $< $@
# BibTeX targets (called recursively).
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment