aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: f1523c70cb6b6618be0e7366306a02d0ee73fd3a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
SUBDIRS := $(wildcard model*/. example*/.)

all: $(SUBDIRS)

$(SUBDIRS):
	$(MAKE) -C $@

pngs: $(SUBDIRS)
	for dir in $(SUBDIRS); do \
		gs -dTextAlphaBits=4 -dFirstPage=1 -dLastPage=1 -dBATCH -dNOPAUSE -sDEVICE=png16m -r72 -dUseCropBox -sOutputFile=$$dir/example.png  $$dir/example.pdf; \
	done

clean:
	for dir in $(SUBDIRS); do \
		$(MAKE) -C $$dir clean; \
	done


.PHONY: all $(SUBDIRS)