-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
28 lines (22 loc) · 690 Bytes
/
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
LILY := ./build
AUX = README.md Makefile \
build defs.ily \
init-sets make-set \
scores2json.py \
tuneoverview shadowdir
#.git .gitignore
SRCDIRS := 2-4_marches 3-4_marches 4-4_marches 5-4_marches \
6-8_marches 9-8_marches \
standards template \
airs hornpipes jigs reels strathspeys \
other christmas sinterklaas suites
LYSRCS := $(foreach dir,$(SRCDIRS),$(wildcard $(dir)/**/*.ly) $(wildcard $(dir)/*.ly))
PDFOBJS = $(patsubst %.ly,%.pdf,$(LYSRCS))
.PHONY: all
all: $(PDFOBJS)
# Pattern rules
%.pdf %.preview.pdf %.preview.png &: %.ly
$(LILY) $<
.PHONY: dist
dist: $(LYSRCS) $(PDFOBJS) $(AUX)
@tar -zhvcf pipeband-music.tar.gz $(SRCDIRS) $(AUX)