Skip to content

Instantly share code, notes, and snippets.

Created Sep 27, 2018
What would you like to do?
Makefile for graphviz
SRCS = $(wildcard *.dot)
PDFS = $(patsubst,%.pdf,$(SRCS))
PNGS = $(patsubst,%.png,$(SRCS))
all: pdfs pngs
pdfs: $(PDFS)
pngs: $(PNGS)
dot -Tpdf -o $@ $<
dot -Tpng -o $@ $<
rm -fv *.pdf *.png
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment