[Opendnssec-commits] [keihatsu.kirei.se/svn/dnssec] r5281 - home/yuri/enforcer_model2

Yuri Schaeffer yuri at keihatsu.kirei.se
Mon Jul 4 11:12:29 CEST 2011


Author: yuri
Date: 2011-07-04 11:12:28 +0200 (Mon, 04 Jul 2011)
New Revision: 5281

Added:
   home/yuri/enforcer_model2/output_knowngood
Modified:
   home/yuri/enforcer_model2/Makefile
Log:
add simple test to makefile


Modified: home/yuri/enforcer_model2/Makefile
===================================================================
--- home/yuri/enforcer_model2/Makefile	2011-07-04 08:43:23 UTC (rev 5280)
+++ home/yuri/enforcer_model2/Makefile	2011-07-04 09:12:28 UTC (rev 5281)
@@ -1,18 +1,28 @@
-all: enforcer_rules.pdf
+OK = output_knowngood
+OUT = out
 
-enforcer_rules.pdf: statemachine.pdf enforcer_rules.tex enforcer_rules.aux
-	pdflatex enforcer_rules.tex
+DOC = enforcer_rules
 
+all: $(DOC).pdf
+
+$(DOC).pdf: statemachine.pdf $(DOC).tex $(DOC).aux
+	pdflatex $(DOC).tex
+
 #~ This rule causes pdflatex to run twice to fix references
-enforcer_rules.aux: enforcer_rules.tex
-	pdflatex enforcer_rules.tex
+$(DOC).aux: $(DOC).tex
+	pdflatex $(DOC).tex
 
 statemachine.pdf: states.dot
 	circo -Tpdf states.dot > statemachine.pdf
 
+test: $(OUT)
+	diff -q $(OK) $(OUT) && echo "Testrun OK" || diff -y $(OK) $(OUT)
+$(OUT): prototype.py
+	python prototype.py 2>/dev/null > $(OUT) || (rm $(OUT) && false)
+
 realclean: clean
 	rm -f *.pdf
 
 clean:
-	rm -f enforcer_rules.aux enforcer_rules.log
+	rm -f $(DOC).toc $(DOC).aux $(DOC).log $(OUT)
 




More information about the Opendnssec-commits mailing list