summaryrefslogtreecommitdiff
path: root/cards/Makefile
blob: 7b257dae51ec99bf592647341a0e31cfad9b5683 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
DCPOMATIC_CREATE := 	../run/dcpomatic_create
DCPOMATIC_CLI := 	../run/dcpomatic_cli

all:			sizing_card_flat.zip sizing_card_scope.zip

sizing_card_%.zip:	sizing_card_%
			cd $< && zip -9 -r ../$@ SizingCard*

sizing_card_flat:	sizing_card_flat.png
			rm -rf sizing_card_flat
			mkdir sizing_card_flat
			$(DCPOMATIC_CREATE) --content-ratio 185 $(CURDIR)/$< > $(CURDIR)/$@/metadata.xml
			$(DCPOMATIC_CLI) $(CURDIR)/$@

sizing_card_scope:	sizing_card_scope.png
			rm -rf sizing_card_scope
			mkdir sizing_card_scope
			$(DCPOMATIC_CREATE) --content-ratio 239 $(CURDIR)/$< > $(CURDIR)/$@/metadata.xml
			$(DCPOMATIC_CLI) $(CURDIR)/$@

sizing_card_%.png:	sizing_card_%.svg
			inkscape -z -C -e $@ $<

clean:;			rm -rf sizing_card_flat sizing_card_scope sizing_card_flat.png sizing_card_scope.png