Skip to content

Instantly share code, notes, and snippets.

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