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 (5)
...@@ -16,12 +16,14 @@ $(DROSS)/test.pdf: $(ALL_FILES) $(DROSS) ...@@ -16,12 +16,14 @@ $(DROSS)/test.pdf: $(ALL_FILES) $(DROSS)
$(GLOS) test $(GLOS) test
$(RUN) test.tex $(RUN) test.tex
docs.pdf: images/wide.jpg STYLE_FILES | $(DROSS) $(DBOOK): docs.pdf
$(CP) $< $@
docs.pdf: images/wide.jpg STYLE_FILES | $(DROSS) ## Make documentation
$(RUN) docs.tex $(RUN) docs.tex
$(GLOS) docs $(GLOS) docs
$(RUN) docs.tex $(RUN) docs.tex
$(CP) $(DROSS)/docs.pdf docs.pdf $(CP) $(DROSS)/docs.pdf docs.pdf
character_sheets.pdf: HANDOUTS STYLE_FILES | $(DROSS) character_sheets.pdf: HANDOUTS STYLE_FILES | $(DROSS) ## Character sheets
$(RUN) character_sheets.tex $(RUN) character_sheets.tex
$(RUN) character_sheets.tex $(RUN) character_sheets.tex
$(CP) $(DROSS)/character_sheets.pdf character_sheets.pdf $(CP) $(DROSS)/character_sheets.pdf character_sheets.pdf
...@@ -36,15 +38,13 @@ booklet.pdf: | STYLE_FILES HANDOUTS $(DROSS) ...@@ -36,15 +38,13 @@ booklet.pdf: | STYLE_FILES HANDOUTS $(DROSS)
/tmp/p_2.pdf: booklet.pdf /tmp/p_2.pdf: booklet.pdf
pdfjam --angle '-90' $< 2 --outfile $@ pdfjam --angle '-90' $< 2 --outfile $@
rules.pdf: /tmp/p_1.pdf /tmp/p_2.pdf rules.pdf: /tmp/p_1.pdf /tmp/p_2.pdf ## One-page rules summary
pdfunite $^ $@ pdfunite $^ $@
markets.pdf: config/market.sty $(wildcard config/markets/*) | $(DROSS) markets.pdf: config/market.sty $(wildcard config/markets/*) | $(DROSS) ## Price-sheets for baileys and town
$(RUN) -jobname markets markets/all.tex $(RUN) -jobname markets markets/all.tex
$(RUN) -jobname markets markets/all.tex $(RUN) -jobname markets markets/all.tex
$(CP) $(DROSS)/$@ . $(CP) $(DROSS)/$@ .
.PHONY: all clean targets += docs.pdf rules.pdf character_sheets.pdf $(DROSS)/test.pdf markets.pdf
all: docs.pdf rules.pdf character_sheets.pdf $(DROSS)/test.pdf output += images/wide.jpg
clean:
$(CLEAN) images/wide.jpg .count.tex
...@@ -14,12 +14,16 @@ COMPILER = latexmk -file-line-error -output-directory=$(DROSS) -pdflua -interact ...@@ -14,12 +14,16 @@ COMPILER = latexmk -file-line-error -output-directory=$(DROSS) -pdflua -interact
RELEASE = $(TITLE).pdf RELEASE = $(TITLE).pdf
GLOS := makeglossaries -d $(DROSS) GLOS := makeglossaries -d $(DROSS)
RUN := lualatex -output-directory $(DROSS) -shell-escape RUN := lualatex -output-directory $(DROSS) -shell-escape
CLEAN := $(RM) -r $(DROSS) $(LOCAL_DROSS) qr.tex *.pdf .switch-gls svg-inkscape
targets += check
.PHONY: book
book: $(RELEASE) ## Compile the pdf
$(RELEASE): $(DBOOK) $(RELEASE): $(DBOOK)
@$(CP) $< $@ @$(CP) $< $@
targets += $(RELEASE)
.PHONY: LOCTEX .PHONY: LOCTEX
LOCTEX: $(wildcard *.tex) LOCTEX: $(wildcard *.tex)
...@@ -37,6 +41,7 @@ qr.tex: README.md config/vars ...@@ -37,6 +41,7 @@ qr.tex: README.md config/vars
.switch-gls: .switch-gls:
@touch .switch-gls @touch .switch-gls
output += qr.tex .switch-gls svg-inkscape
images/extracted/: images/extracted/:
mkdir -p $@ mkdir -p $@
...@@ -45,31 +50,38 @@ images/extracted/inclusion.tex: images/extracted/ ...@@ -45,31 +50,38 @@ images/extracted/inclusion.tex: images/extracted/
printf '%s\n' '\externaldocument{$(BOOK)}' > $@ printf '%s\n' '\externaldocument{$(BOOK)}' > $@
printf '%s\n' '\newcommand\bookTitle{$(TITLE)}' | tr '_' ' ' >> $@ printf '%s\n' '\newcommand\bookTitle{$(TITLE)}' | tr '_' ' ' >> $@
output += images/extracted/
$(DROSS): $(DROSS):
mkdir $(DROSS) mkdir $(DROSS)
check: output += $(DROSS)
.PHONY: check
check: ## Check you have the project dependencies
@command -v git >/dev/null || ( echo install git && exit 1 ) @command -v git >/dev/null || ( echo install git && exit 1 )
@command -v git-lfs >/dev/null || ( echo install git-lfs && 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 lualatex >/dev/null || ( echo install lualatex && exit 1 )
@command -v latexmk >/dev/null || ( echo install latexmk && exit 1 ) @command -v latexmk >/dev/null || ( echo install latexmk && exit 1 )
@command -v inkscape >/dev/null || ( echo install inkscape && exit 1 ) @command -v inkscape >/dev/null || ( echo install inkscape && exit 1 )
help: help: ## Print the help message
@echo 'BIND version $(VERSION)' @awk 'BEGIN {FS = ":.*?## "} /^[0-9a-zA-Z._-]+:.*?## / {printf "\033[36m%s\033[0m : %s\n", $$1, $$2}' $(MAKEFILE_LIST) | \
@echo '' sort | \
@echo 'Check you have the requirements with' column -s ':' -t
@echo '$$ make check'
@echo '' graph: ## Show a dependency graph (needs graph-easy and make2graph)
@echo 'Compile with'
@echo '$$ make'
@echo ''
@echo 'Required tlmgr packages are in'
@echo 'config/Docker/tlmgrDeps.sh'
@echo ''
graph:
make -Bind $(TARG) | make2graph | graph-easy --boxart make -Bind $(TARG) | make2graph | graph-easy --boxart
print_%.pdf: %.pdf print_%.pdf: %.pdf
pdfjam --landscape --paper a3paper --nup 1x1 --signature 12 $< -o $@ pdfjam --landscape --paper a3paper --nup 1x1 --signature 12 $< -o $@
output += $(targets)
.PHONY: all
all: ## All standard targets
make $(targets)
.PHONY: clean
clean: ## Clean repo, including cross-reference files
$(RM) -r $(output)