aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--Makefile37
1 files changed, 34 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 9afb336..978a0dc 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,34 @@
.POSIX:
-all:
+
+.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)
+
+
+all: $(lilypond)
+
+
+$(lilypond.pdf): $(lilypond.midi)
+
+
check:
sh aux/assert-shellcheck.sh
sh aux/workflow/assert-todos.sh
@@ -10,9 +39,11 @@ check:
dev-check: check
clean:
- rm -rf public/
+ rm -rf \
+ public/ \
+ $(lilypond)
-public:
+public: all
jekyll build
publish: public