Makefile reworked, composer name.
parent
4717f5077e
commit
8583843457
63
Makefile
63
Makefile
|
@ -1,60 +1,13 @@
|
|||
SRC = supermario
|
||||
BIBLIOGRAPHY = bibliography
|
||||
ALLSRC = $(shell find . -name "*.ms")
|
||||
SRC ?= supermario
|
||||
|
||||
# -P => move ponctuation after reference
|
||||
# -S => label and bracket-label options
|
||||
# -e => accumulate (use a reference section)
|
||||
# -p bib => bibliography file
|
||||
REFER_OPTS = -PS -e -p $(BIBLIOGRAPHY)
|
||||
REFER = refer $(REFER_OPTS)
|
||||
|
||||
# -k => iconv conversion (did it ever worked?)
|
||||
# -ms => ms macro
|
||||
# -Tpdf => output device is PDF
|
||||
GROFF_OPTS = -t -Tpdf
|
||||
GROFF = groff $(GROFF_OPTS)
|
||||
|
||||
EQN_OPTS =
|
||||
EQN = eqn $(EQN_OPTS)
|
||||
|
||||
PRECONV_OPTS =
|
||||
PRECONV = preconv $(PRECONV_OPTS)
|
||||
|
||||
# ghighlight brings `source-highlight` to troff
|
||||
GHIGHLIGHT_OPTS =
|
||||
GHIGHLIGHT = ghighlight $(GHIGHLIGHT_OPTS)
|
||||
|
||||
VIEWER_OPTS = -
|
||||
VIEWER = zathura $(VIEWER_OPTS)
|
||||
|
||||
SOELIM_OPTS =
|
||||
SOELIM = soelim $(SOELIM_OPTS)
|
||||
|
||||
PIC_OPTS =
|
||||
PIC = pic $(PIC_OPTS)
|
||||
|
||||
GRAP_OPTS =
|
||||
GRAP = grap $(GRAP_OPTS)
|
||||
|
||||
# GH_INTRO: instructions before each source code provided by source-highlight
|
||||
# GH_OUTRO: ------------ after ---- ------ ---- -------- -- ----------------
|
||||
# GH_INTRO/GH_OUTRO: values are separated by ';'
|
||||
|
||||
GH_INTRO := .b1;.nr DI 0;.DS I;.fam C
|
||||
GH_OUTRO := .fam;.DE;.b2
|
||||
|
||||
export GH_INTRO
|
||||
export GH_OUTRO
|
||||
|
||||
# SHOPTS: cmd line parameter given to source-highlight
|
||||
SHOPTS = --outlang-def=./.source-highlight_groff-output-definition
|
||||
export SHOPTS
|
||||
|
||||
#$(SRC).pdf:
|
||||
# cat $(SRC).ms | $(SOELIM) | $(GHIGHLIGHT) | $(PRECONV) | $(GRAP) | $(EQN) | $(PIC) | $(REFER) | $(GROFF) > $@
|
||||
ODIR ?= .
|
||||
|
||||
$(SRC).pdf:
|
||||
lilypond $(SRC).ly
|
||||
lilypond -o $(ODIR)/$(SRC) $(SRC).ly
|
||||
|
||||
run: $(SRC).pdf
|
||||
|
||||
serve:
|
||||
find . -name "*.ly" | entr gmake -B run ODIR=$(ODIR) SRC=$(SRC)
|
||||
|
||||
include Makefile.custom
|
||||
|
|
|
@ -1,7 +1,4 @@
|
|||
# This entire file is quite personal, you can ignore it.
|
||||
|
||||
upload:
|
||||
scp $(SRC).pdf tacos:/var/www/htdocs/t.karchnu.fr/doc/
|
||||
|
||||
run: $(SRC).pdf
|
||||
|
||||
serve:
|
||||
find . -name "*.ly" | entr gmake -B run
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
\version "2.18.1"
|
||||
\header { title = \markup "Super Mario" }
|
||||
\header {
|
||||
title = \markup "Super Mario"
|
||||
composer = "Philippe Pittoli"
|
||||
}
|
||||
|
||||
supermario = \relative {
|
||||
|
||||
|
|
Loading…
Reference in New Issue