summaryrefslogtreecommitdiffhomepage
path: root/digital/io/doc/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'digital/io/doc/makefile')
-rw-r--r--digital/io/doc/makefile16
1 files changed, 11 insertions, 5 deletions
diff --git a/digital/io/doc/makefile b/digital/io/doc/makefile
index e0213364..23521af7 100644
--- a/digital/io/doc/makefile
+++ b/digital/io/doc/makefile
@@ -1,5 +1,11 @@
-fsm : mainFsm.dot chargeBall.dot getSamplesFsm.dot chuteFsm.dot
- dot -Tpng -o mainFsm.png mainFsm.dot
- dot -Tpng -o chargeBall.png chargeBall.dot
- dot -Tpng -o getSamplesFsm.png getSamplesFsm.dot
- dot -Tpng -o chuteFsm.png chuteFsm.dot \ No newline at end of file
+DOT = mainFsm.dot chargeBall.dot getSamplesFsm.dot chuteFsm.dot
+
+PNG = $(DOT:%.dot=%.png)
+
+all: $(PNG)
+
+%.png: %.dot
+ dot -Tpng -o $@ $<
+
+clean:
+ rm -f $(PNG)