2021-09-27 03:16:16 +02:00
|
|
|
SRC = universe-from-nothing
|
|
|
|
BIBLIOGRAPHY = bibliography
|
|
|
|
ALLSRC = $(shell find . -name "*.ms")
|
|
|
|
|
|
|
|
# -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 = -ms -t -Tpdf
|
|
|
|
GROFF = groff $(GROFF_OPTS)
|
|
|
|
|
2021-10-01 23:35:00 +02:00
|
|
|
EQN_OPTS = -Tpdf
|
2021-09-27 03:16:16 +02:00
|
|
|
EQN = eqn $(EQN_OPTS)
|
|
|
|
|
2021-10-05 04:49:30 +02:00
|
|
|
PRECONV_OPTS = -e utf-8
|
2021-09-27 03:16:16 +02:00
|
|
|
PRECONV = preconv $(PRECONV_OPTS)
|
|
|
|
|
2021-10-05 04:49:30 +02:00
|
|
|
SPECHAR = specialchar2ms.sh
|
|
|
|
|
2021-09-27 03:16:16 +02:00
|
|
|
# ghighlight brings `source-highlight` to troff
|
|
|
|
GHIGHLIGHT_OPTS =
|
|
|
|
GHIGHLIGHT = ghighlight $(GHIGHLIGHT_OPTS)
|
|
|
|
|
|
|
|
VIEWER_OPTS = -
|
|
|
|
VIEWER = zathura $(VIEWER_OPTS)
|
|
|
|
|
|
|
|
SOELIM_OPTS =
|
|
|
|
SOELIM = soelim $(SOELIM_OPTS)
|
|
|
|
|
2021-09-28 23:22:59 +02:00
|
|
|
GRAP_OPTS =
|
|
|
|
GRAP = grap $(GRAP_OPTS)
|
|
|
|
|
2021-09-27 03:16:16 +02:00
|
|
|
PIC_OPTS =
|
|
|
|
PIC = pic $(PIC_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:
|
2021-10-05 04:49:30 +02:00
|
|
|
cat $(SRC).ms | $(SOELIM) | $(EQN) | $(GHIGHLIGHT) | $(GRAP) | $(PIC) | $(REFER) | $(PRECONV) | $(SPECHAR) | $(GROFF) > $@
|
2021-09-27 03:16:16 +02:00
|
|
|
|
|
|
|
include Makefile.custom
|