projects
/
hwmod.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
spec env: pdfs und pngs werden nicht mehr ins repo gepusht sondern vom Makefile gener...
[hwmod.git]
/
spec
/
Makefile
diff --git
a/spec/Makefile
b/spec/Makefile
index e79e671652b6a35ab6dc929509f86f2a86656920..b875ac342fe6bd875acea938869ac3b37dd09f50 100644
(file)
--- a/
spec/Makefile
+++ b/
spec/Makefile
@@
-1,13
+1,22
@@
-PROJECT = spec
+SHELL := bash
+PROJECT = speck
all: protocol
all: protocol
-protocol: $(
subst .dia,.png,$(shell ls *.dia
))
- pdflatex $(PROJECT)
- pdflatex $(PROJECT)
+protocol: $(
PROJECT).tex $(subst .dia,.png,$(shell ls *.dia)) $(subst .tex,.pdf,$(shell ls sm/*.tex
))
+ pdflatex $(PROJECT)
.tex
+ pdflatex $(PROJECT)
.tex
%.png: %.dia
dia $< -e $@ -t png
%.png: %.dia
dia $< -e $@ -t png
+%.pdf: %.tex
+ latex -output-directory=sm $<
+ dvips $(subst .tex,.dvi,$<) -o $(subst .tex,.ps,$<)
+ ps2pdf $(subst .tex,.ps,$<) $@
+ pdfcrop $@ $(subst .pdf,.pdf2,$@)
+ mv $(subst .pdf,.pdf2,$@) $@
+ rm sm/{*.dvi,*.ps,*.aux,*.log}
+
clean:
clean:
- -rm -f
*.aux *.log *.dvi *.toc *.out *.pdf *.png
+ -rm -f
{,sm/}{*.aux,*.log,*.dvi,*.toc,*.out,*.pdf,*.png}