aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 835940327bb9e9ab2f6e626374647db039926606 (about) (plain) (blame)
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
.POSIX:

.SUFFIXES:
.SUFFIXES: .ly .flac .midi .ogg .pdf

.ly.midi:
	lilypond -o $* $<

.midi.ogg:
	timidity -Ov $<


lilypond.ly = \
	music/choro-da-saudade.ly \
	music/dengoso.ly          \
	music/marcha-dos-marinheiros.ly
lilypond.pdf  = $(lilypond.ly:.ly=.pdf)
lilypond.midi = $(lilypond.ly:.ly=.midi)
lilypond.ogg  = $(lilypond.midi:.midi=.ogg)
lilypond = \
	$(lilypond.pdf)  \
	$(lilypond.midi) \
	$(lilypond.ogg)

favicons = static/favicon.png favicon.ico


all: $(lilypond) $(favicons)


$(lilypond.pdf): $(lilypond.midi)


static/favicon.png: static/favicon.svg
	inkscape -o $@ -w 420 -h 420 -b white $?

favicon.ico: static/favicon.svg
	convert $? $@


check:
	sh aux/assert-shellcheck.sh
	sh aux/workflow/assert-todos.sh
	sh scripts/assert-spelling.sh
	sh scripts/extract-translations.sh
	sh scripts/apply-translations.sh

dev-check: check

clean:
	rm -rf \
		public/ \
		$(lilypond) $(favicons)

public: all
	jekyll build

publish: public
	rsync -avzP public/ euandre.org:/home/user-data/www/default/ --delete