Created
September 27, 2018 05:17
-
-
Save mmb/3168a73b89f56a926cf112a3ec6c5292 to your computer and use it in GitHub Desktop.
Makefile for graphviz
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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