diff options
author | deva <deva> | 2007-07-13 09:43:39 +0000 |
---|---|---|
committer | deva <deva> | 2007-07-13 09:43:39 +0000 |
commit | cbabe2ded759c4bac140e798432a5d6e35c4a9ae (patch) | |
tree | eeeba676655fff7b9396111cd4732965e7bd0d30 /design/Makefile |
Initial revision
Diffstat (limited to 'design/Makefile')
-rw-r--r-- | design/Makefile | 44 |
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 $< $@ |