You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
SOURCES = $(wildcard plots/*.png)
|
|
TARGETS = $(patsubst plots/%.png, plots/cropped/%.png, $(SOURCES))
|
|
|
|
|
|
.PHONY: all clean
|
|
all: $(TARGETS)
|
|
|
|
|
|
plots/cropped/%.png: plots/%.png
|
|
mkdir -p plots/cropped
|
|
magick $< -trim +repage -background white $@
|
|
|
|
|
|
clean:
|
|
rm -rf plots/cropped
|
|
|