From ae12df49c597460d923eeb71a5bdcdc708d57b11 Mon Sep 17 00:00:00 2001 From: Brian Norris Date: Tue, 5 Feb 2013 15:16:03 -0800 Subject: [PATCH] Makfile: add 'make pdfs' target to build PDF from .dot graph --- Makefile | 6 ++++++ 1 file changed, 6 insertions(+) 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) -- 2.34.1