From: Brian Norris Date: Tue, 5 Feb 2013 23:16:03 +0000 (-0800) Subject: Makfile: add 'make pdfs' target to build PDF from .dot graph X-Git-Tag: oopsla2013~311 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=ae12df49c597460d923eeb71a5bdcdc708d57b11;p=model-checker.git Makfile: add 'make pdfs' target to build PDF from .dot graph --- diff --git a/Makefile b/Makefile index 1cc4f4b..ee08b5c 100644 --- a/Makefile +++ b/Makefile @@ -35,6 +35,9 @@ malloc.o: malloc.c %.o: %.cc $(CXX) -MMD -MF .$@.d -fPIC -c $< $(CPPFLAGS) +%.pdf: %.dot + dot -Tpdf $< -o $@ + -include $(OBJECTS:%=.%.d) PHONY += clean @@ -66,4 +69,7 @@ benchmarks: $(LIB_SO) fi $(MAKE) -C $(BENCH_DIR) +PHONY += pdfs +pdfs: $(patsubst %.dot,%.pdf,$(wildcard *.dot)) + .PHONY: $(PHONY)