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-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=ae12df49c597460d923eeb71a5bdcdc708d57b11;hp=5af7bf9e51795daa1b4dede1e27e4862170535f4;p=c11tester.git Makfile: add 'make pdfs' target to build PDF from .dot graph --- diff --git a/Makefile b/Makefile index 1cc4f4ba..ee08b5c4 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)