summaryrefslogtreecommitdiff
path: root/tools/dfagen/examples/Makefile
diff options
context:
space:
mode:
authorNicolas Schodet2009-11-22 23:37:53 +0100
committerNicolas Schodet2009-11-22 23:37:53 +0100
commitab8c3aef948e70a75d055174293f28f3146a592e (patch)
treef5313460b0016a1e639396e2658a7dc1993828e7 /tools/dfagen/examples/Makefile
parent11ecac0ab42bba330230759b6250f664f52fee9c (diff)
tools/dfagen: add import support, closes #82
Diffstat (limited to 'tools/dfagen/examples/Makefile')
-rw-r--r--tools/dfagen/examples/Makefile11
1 files changed, 10 insertions, 1 deletions
diff --git a/tools/dfagen/examples/Makefile b/tools/dfagen/examples/Makefile
index 1f7b3308..ad97b8a4 100644
--- a/tools/dfagen/examples/Makefile
+++ b/tools/dfagen/examples/Makefile
@@ -1,6 +1,6 @@
CFLAGS = -O2 -Wall
-all: ex1 ex2 ex1.png ex2.png ex2_tpl
+all: ex1 ex2 ex1.png ex2.png ex2_tpl import.dump.check
ex1: ex1.o ex1_cb.o
@@ -38,9 +38,18 @@ ex2_tpl: ex2.fsm ex2_tpl.conf
%.png: %.dot
dot -Tpng $< -o $@
+%.dump: %.fsm
+ python ../dfagen.py --dump -d $< > $@
+
+%.check: % %.ref
+ diff $^
+
+import.dump: import.fsm imported1.fsm imported2.fsm imported3.fsm
+
clean:
rm -f ex1 ex1.o ex1_cb.o ex1.c ex1.h ex1_cb_skel.c ex1_cb.h ex1_cb.c
rm -f ex1.dot ex1.png
rm -f ex2 ex2.o ex2_cb.o ex2_robot.o ex2.c ex2.h ex2_cb_skel.c ex2_cb.h ex2_cb.c
rm -f ex2.dot ex2.png
rm -f ex2_tpl_defs.h ex2_tpl_table.h
+ rm -f import.dump