Created
September 9, 2013 03:00
-
-
Save justbuchanan/6491020 to your computer and use it in GitHub Desktop.
Simple makefile to generate images from all *.dot files in the directory.
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
TYPE=png | |
SRC=$(wildcard *.dot) | |
OUT=$(patsubst %.dot, %.$(TYPE), $(SRC)) | |
all: $(OUT) | |
%.$(TYPE): %.dot | |
dot -T$(TYPE) $^ -o $@ | |
clean : | |
rm *.$(TYPE) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment