Makfile: add 'make pdfs' target to build PDF from .dot graph
authorBrian Norris <banorris@uci.edu>
Tue, 5 Feb 2013 23:16:03 +0000 (15:16 -0800)
committerBrian Norris <banorris@uci.edu>
Wed, 6 Feb 2013 21:41:10 +0000 (13:41 -0800)
Makefile

index 1cc4f4baa9cb1054f34b5ba2497bb32c175aa87f..ee08b5c420656ad567e4354889f1143aa3a8e9f7 100644 (file)
--- 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)