1 # STDprojnameDTS/Makefile
6 AFVLOCKDIR
= $(HOME
)/.
$(NAME
)-afv.lock
7 DEPS
= .version.ily
*.ily
*.ly Makefile
8 DIRTYSTR
= $$(git diff-index
--name-only HEAD . | grep
-q .
&& echo
-n
-dirty
)
9 ENGR
= \"Engraved with LilyPond v
\" (lilypond-version
) \" ❤
\"
10 FRESCOLOCKDIR
= $(HOME
)/.
$(NAME
)-fresco.lock
12 IGNFILES
+= -e
'\.midi$$'
13 IGNFILES
+= -e
'\.mp3$$'
14 IGNFILES
+= -e
'\.opus$$'
15 IGNFILES
+= -e
'\.pdf$$'
16 IGNFILES
+= -e
'\.wav$$'
19 SA_GIT
= \
#(string-append \"Commit %h$(DIRTYSTR) (%cs) — \" $(ENGR))
20 SA_NOGIT
= \
#(string-append \"Compiled $$(date +%Y-%m-%d) — \" $(ENGR))
25 .version.ily
: *.ily
*.ly Makefile
26 if
[ -z
"$$(git log -1 --format=%h . 2>/dev/null)" ]; then \
27 echo
"versioninfo = $(SA_NOGIT)"; \
29 git log
-1 --format
="versioninfo = $(SA_GIT)" .
; \
40 timidity
--output-24bit
-Ow
$*.midi
55 (sess
-- afv
-l5
$(NAME
).ly
'*.ily' $(NAME
).midi
; \
56 rmdir
$(AFVLOCKDIR
)) &
60 rm -f
$(NAME
).mp3
$(NAME
).opus
$(NAME
).pdf
$(NAME
).wav .version.ily
69 $(LILYPOND
) -dno-point-and-click
$(NAME
).ly
73 git diff
--word-diff
*.ly
*.ily
77 git diff
--word-diff
--word-diff-regex
=.
*.ly
*.ily
81 $(EDITOR
) $$(git ls-files | grep
-v
$(IGNFILES
))
85 mkdir
$(FRESCOLOCKDIR
)
86 (sess frescobaldi
$(NAME
).ly
; rmdir
$(FRESCOLOCKDIR
)) &
102 $(PLAYER
) $(NAME
).wav
106 timidity
--output-24bit
-T
50 $(NAME
).midi
110 for f in .
*.swp
; do \
111 git add
$$(basename $$(echo
$$f | cut
-c
2-) .swp
); \
112 vim
-r
$$f; rm -i
$$f; \
121 sess okular
$(NAME
).pdf
&>/dev
/null
&