made small changed to testing code
[hwmod.git] / spec / Makefile
index afb43f25fbd68c2d42f382205fde73dd6fd24c35..99df66ef17f3192be3be84200679717556005014 100644 (file)
@@ -1,9 +1,9 @@
 SHELL := bash
-PROJECT = spec
+PROJECT = speck
 
-all: protocol
+all: $(PROJECT).pdf
 
-protocol: $(PROJECT).tex $(subst .dia,.png,$(shell ls *.dia)) $(subst .tex,.pdf,$(shell ls sm/*.tex))
+$(PROJECT).pdf: $(PROJECT).tex $(subst .dia,.png,$(shell ls *.dia)) $(subst .tex,.pdf,$(shell ls sm/*.tex)) ProtocolHeader.sty
        pdflatex $(PROJECT).tex
        pdflatex $(PROJECT).tex
 
@@ -19,5 +19,4 @@ protocol: $(PROJECT).tex $(subst .dia,.png,$(shell ls *.dia)) $(subst .tex,.pdf,
        rm sm/{*.dvi,*.ps,*.aux,*.log}
 
 clean:
-       @#-rm -f {,sm/}{*.aux,*.log,*.dvi,*.toc,*.out,*.pdf,*.png}
-       -rm -f {,sm/}{*.aux,*.log,*.dvi,*.toc,*.out}
+       -rm -f {,sm/}{*.aux,*.log,*.dvi,*.toc,*.out,*.ps,*.png}