Ian Jauslin
summaryrefslogtreecommitdiff
blob: 39d1a0b2e1c4c0acd74b8901e64fcc2860811de2 (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_bare erho erho_holzmann

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