Skip to content

Commit

Permalink
Add png
Browse files Browse the repository at this point in the history
  • Loading branch information
miloyip committed Dec 2, 2016
1 parent 148400c commit 1b33376
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
DOTFILES = $(basename $(wildcard *.dot))

all: $(addsuffix .jpg, $(DOTFILES)) $(addsuffix .svg, $(DOTFILES)) $(addsuffix .pdf, $(DOTFILES))
all: \
$(addsuffix .png, $(DOTFILES)) \
$(addsuffix .jpg, $(DOTFILES)) \
$(addsuffix .svg, $(DOTFILES)) \
$(addsuffix .pdf, $(DOTFILES))

%.png: %.dot
dot "$<" -Tpng -o "$@"

%.jpg: %.dot
dot "$<" -Tjpg -o "$@"
Expand Down

0 comments on commit 1b33376

Please sign in to comment.