]> rtime.felk.cvut.cz Git - boost-statechart-viewer.git/commitdiff
Add test target to Makefile
authorMichal Sojka <sojkam1@fel.cvut.cz>
Mon, 28 Feb 2011 10:09:42 +0000 (11:09 +0100)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Mon, 28 Feb 2011 10:09:42 +0000 (11:09 +0100)
src/Makefile

index 0f8f45d1aa3a8dca8c364c1461793608de41eae1..2a67779859dee08718507547378263eb5ccb4bfd 100644 (file)
@@ -10,3 +10,9 @@ visualizer: visualizer.cpp commandlineopt.h stringoper.h
        -lclangDriver -lclangCodeGen -lclangSema -lclangChecker \
        -lclangAnalysis -lclangRewrite -lclangAST -lclangLex -lclangBasic \
        $(LLVM_CONFIG)
+
+.PHONY: test
+test: test.dot
+
+%.dot: %.cpp visualizer
+       ./visualizer $< -o $@