-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
33 lines (23 loc) · 1.86 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
SCANS = samples/scans/007-captain-future-galaxy-drift-1.pdf
samples: $(SCANS)
# make sure that imagemagick's convert program is allowed to read and write pdfs (see https://cromwell-intl.com/open-source/pdf-not-authorized.html) :
# in /etc/ImageMagick-6/policy.xml, replace
# <policy domain="coder" rights="none" pattern="PDF" />
# with
# <policy domain="coder" rights="read|write" pattern="PDF" />
samples/scans/007-captain-future-galaxy-drift-1.pdf: samples/origpdf/007-captain-future-galaxy-drift-1-parts.pdf
./bin/scanify $< $@
.PHONY: clean
clean:
rm -f $(SCANS)
rm -f samples/stubs/007-captain-future-galaxy-drift-1.pdf
rm -f samples/prints/007-captain-future-galaxy-drift-1.pdf
rm -f samples/prints/007-captain-future-galaxy-drift-1-saxo-soprano.pdf
samples/stubs/007-captain-future-galaxy-drift-1.pdf: samples/jazz.orchestra samples/scans/007-captain-future-galaxy-drift-1.pdf samples/scans/007-captain-future-galaxy-drift-1.desc
PYTHONPATH=./src ./src/apps/pymusco --orchestra-file-path $(word 1,$^) build-stub --scan-file-path $(word 2,$^) --scan-desc-file-path $(word 3,$^) --stub-file-path $@
samples/prints/007-captain-future-galaxy-drift-1.pdf: samples/jazz.orchestra samples/stubs/007-captain-future-galaxy-drift-1.pdf samples/jazz.headcount
PYTHONPATH=./src ./src/apps/pymusco --orchestra-file-path $(word 1,$^) build-print --stub-file-path $(word 2,$^) --print-file-path $@ ts-auto --headcount-file-path $(word 3,$^)
samples/prints/007-captain-future-galaxy-drift-1-saxo-soprano.pdf: samples/jazz.orchestra samples/stubs/007-captain-future-galaxy-drift-1.pdf
PYTHONPATH=./src ./src/apps/pymusco --orchestra-file-path $(word 1,$^) build-print --stub-file-path $(word 2,$^) --print-file-path $@ ts-single 'bb soprano saxophone'
.PHONY: test
test: samples/prints/007-captain-future-galaxy-drift-1.pdf samples/prints/007-captain-future-galaxy-drift-1-saxo-soprano.pdf