Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • andonome/config
1 result
Show changes
Commits on Source (2)
include vars
output: docs.pdf
include vars
$(DROSS):
mkdir $(DROSS)
......@@ -19,9 +19,6 @@ $(DROSS)/test.pdf: test.tex $(ALL_FILES)
cd $(DROSS) && makeglossaries test
$(RUN) test.tex
.switch-gls:
touch .switch-gls
docs.pdf: images/wide.jpg $(ALL_FILES)
$(RUN) docs.tex
$(GLOS) docs
......
# Configurations and Templates
These config files make the BIND RPG books look and act the way they do.
# Dependencies
......
......@@ -2,18 +2,41 @@ VERSION != git tag | tail -1
QR_TARGET != grep mailto: README.md | cut -d: -f2,3 | tail -c+2
QR_CODE=\qrcode[height=.2\textwidth]{$(QR_TARGET)}
.check:
COMPRESS = gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.5 -dNOPAUSE -dQUIET -dBATCH -dPrinted=false -sOutputFile=$@ $<
CP := ln -f
BOOK != basename "$(PWD)"
TITLE != head -1 README.md | tail -c+3 | tr ' ' '_'
LOCAL_DROSS := rubbish
DROSS = ../$(LOCAL_DROSS)
DBOOK = $(DROSS)/$(BOOK).pdf
COMPILER = latexmk -file-line-error -output-directory=$(DROSS) -pdflua -interaction=nonstopmode -halt-on-error -shell-escape -r config/.latexmkrc -jobname=$(BOOK)
RELEASE = $(TITLE).pdf
GLOS := makeglossaries -d $(DROSS)
RUN := lualatex -output-directory $(DROSS) -shell-escape
CLEAN := $(RM) -r $(DROSS) $(LOCAL_DROSS) qr.tex *.pdf .switch-gls svg-inkscape
DEPS := $(wildcard *.tex) $(wildcard config/*sty) config/ $(wildcard $(DROSS)/*.glg)
$(RELEASE): $(DBOOK)
@$(CP) $< $@
qr.tex: README.md config/vars
@printf '\qrcode[height=.2\\textwidth]{$(QR_TARGET)}' > qr.tex
.switch-gls:
@touch .switch-gls
check:
@command -v git >/dev/null || ( echo install git && exit 1 )
@command -v git-lfs >/dev/null || ( echo install git-lfs && exit 1 )
@command -v lualatex >/dev/null || ( echo install lualatex && exit 1 )
@command -v latexmk >/dev/null || ( echo install latexmk && exit 1 )
@command -v inkscape >/dev/null || ( echo install inkscape && exit 1 )
.help:
help:
@echo 'BIND version $(VERSION)'
@echo ''
@echo 'Check you have the requirements with'
@echo '$$ make .check'
@echo '$$ make check'
@echo ''
@echo 'Compile with'
@echo '$$ make'
......@@ -22,15 +45,3 @@ QR_CODE=\qrcode[height=.2\textwidth]{$(QR_TARGET)}
@echo 'config/Docker/tlmgrDeps.sh'
@echo ''
COMPRESS = gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.5 -dNOPAUSE -dQUIET -dBATCH -dPrinted=false -sOutputFile=$@ $<
CP := ln -f
BOOK := $(shell basename "$$(pwd)")
LOCAL_DROSS := rubbish
DROSS := ../$(LOCAL_DROSS)
COMPILER := latexmk -file-line-error -auxdir=$(DROSS) -pdflua -interaction=nonstopmode -halt-on-error -shell-escape -r config/.latexmkrc -jobname=$(BOOK)
RELEASE := $(BOOK)-$(VERSION).pdf
GLOS := makeglossaries -d $(DROSS)
RUN := lualatex -output-directory $(DROSS) -shell-escape
CLEAN := $(RM) -r $(DROSS) $(LOCAL_DROSS) qr.tex *.pdf .switch-gls svg-inkscape
DEPS := $(wildcard *.tex) $(wildcard config/*sty) config/ $(wildcard $(DROSS)/*.glg)