summaryrefslogtreecommitdiff
path: root/design/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'design/Makefile')
-rw-r--r--design/Makefile44
1 files changed, 44 insertions, 0 deletions
diff --git a/design/Makefile b/design/Makefile
new file mode 100644
index 0000000..267be51
--- /dev/null
+++ b/design/Makefile
@@ -0,0 +1,44 @@
+SOURCE=preamble.tex
+TARGET=designdokument
+FLAGS=-halt-on-error -file-line-error -c-style-errors
+#PNGs := $(patsubst %.png,%.eps, $(wildcard *.png))
+JPGs := $(patsubst %.jpg,%.eps, $(wildcard *.jpg))
+FIGs := $(patsubst %.fig,%.eps, $(wildcard *.fig))
+TEXs := *.tex #$(patsubst %.fig,%.eps, $(wildcard *.fig))
+.PHONY =dvi ps pdf mpost clean cleanall
+
+all: dvi ps pdf
+
+dvi: $(TARGET).dvi
+ps: $(TARGET).ps
+pdf: $(TARGET).pdf
+
+$(TARGET).dvi: $(JPGs) $(FIGs) $(TEXs)
+ latex $(FLAGS) -jobname $(TARGET) $(SOURCE)
+ latex $(FLAGS) -jobname $(TARGET) $(SOURCE)
+
+$(TARGET).ps: $(TARGET).dvi
+ dvips -t a4 $(TARGET).dvi -o
+
+$(TARGET).pdf: $(TARGET).ps
+ ps2pdf14 $(TARGET).ps $(TARGET).pdf
+
+clean:
+ rm -f \#*
+ rm -f *~
+ rm -f *.log
+ rm -f *.toc
+ rm -f *.aux
+ rm -f $(TARGET).dvi
+ rm -f $(TARGET).ps
+ rm -f $(TARGET).pdf
+ rm -f *.eps
+
+%.eps: %.jpg
+ convert $< $@
+
+%.eps: %.png
+ convert $< $@
+
+%.eps: %.fig
+ fig2dev -L eps $< $@