big update, lot cleaner tex and make
[bsc-thesis1415.git] / thesis2 / Makefile
index 6a377fa..38fb5c3 100644 (file)
@@ -1,22 +1,12 @@
 SHELL:=/bin/bash
 VERSION:=1.0RC1
-SOURCES:=1.introduction.tex 2.requirementsanddesign.tex 3.methods.tex\
- 4.discussion.tex 5.appendices.tex abstract.tex thesis.tex scheme1.xsd\
- scheme2.xsd exrss.xml
-GRAPHS:=appoverview.eps backend.eps dagexample.eps graphexample.eps\
- inccons.eps nddawg.eps nodelistexample.eps informationflow.eps\
- feedbackloop.eps
+SOURCES:=$(shell ls *.tex) scheme.xsd exrss.xml
+GRAPHS:=$(addsuffix .eps,$(basename $(shell ls *.dot)))
 
-.PHONY: all clean clobber graphs
+.PHONY: clobber graphs
 
 all: graphs thesis.pdf
 
-scheme1.xsd: scheme.xsd
-       head -50 $< > $@
-
-scheme2.xsd: scheme.xsd
-       tail -n +49 $< > $@
-
 %.eps: %.dot
        dot -Teps < $< > $@
 
@@ -32,7 +22,7 @@ scheme2.xsd: scheme.xsd
 graphs: $(GRAPHS)
 
 clean:
-       @$(RM) -v *.{eps,aux,bbl,blg,dvi,log,out,toc,ps,pyg} scheme[12].xsd
+       @$(RM) -v *.{eps,aux,bbl,blg,dvi,log,out,toc}
 
 clobber: clean
        @$(RM) -v *.pdf