Ian Jauslin
summaryrefslogtreecommitdiff
blob: e8d3f123c89dd04fc19e0aed41d10cb7182578c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
PROJECTNAME=erho_effective erho_fulleq erho_lowhigh

PDFS=$(addsuffix .pdf, $(PROJECTNAME))

all: $(PDFS)

$(PDFS):
	gnuplot $(patsubst %.pdf, %.gnuplot, $@) > $(patsubst %.pdf, %.tex, $@) 
	pdflatex -file-line-error $(patsubst %.pdf, %.tex, $@)

install: $(PDFS)
	cp $^ $(INSTALLDIR)/

$(LIBS):
	ln -fs libs/$@ ./

clean-libs:
	rm -f $(LIBS)

clean-aux:
	rm -f $(addsuffix .aux, $(PROJECTNAME))
	rm -f $(addsuffix .log, $(PROJECTNAME))
	rm -f $(addsuffix .tex, $(PROJECTNAME))

clean-tex:
	rm -f $(PDFS)

clean: clean-libs clean-aux clean-tex