Skip to content

Instantly share code, notes, and snippets.

@justbuchanan
Created September 9, 2013 03:00
Show Gist options
  • Save justbuchanan/6491020 to your computer and use it in GitHub Desktop.
Save justbuchanan/6491020 to your computer and use it in GitHub Desktop.
Simple makefile to generate images from all *.dot files in the directory.
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