Skip to content
Snippets Groups Projects
Verified Commit 12a55aca authored by Malin Freeborn's avatar Malin Freeborn
Browse files

add help targets

parent 7f264bb9
No related branches found
No related tags found
No related merge requests found
......@@ -16,12 +16,14 @@ $(DROSS)/test.pdf: $(ALL_FILES) $(DROSS)
$(GLOS) test
$(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
$(GLOS) docs
$(RUN) docs.tex
$(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
$(CP) $(DROSS)/character_sheets.pdf character_sheets.pdf
......@@ -36,10 +38,10 @@ booklet.pdf: | STYLE_FILES HANDOUTS $(DROSS)
/tmp/p_2.pdf: booklet.pdf
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 $^ $@
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
$(CP) $(DROSS)/$@ .
......
......@@ -16,10 +16,13 @@ GLOS := makeglossaries -d $(DROSS)
RUN := lualatex -output-directory $(DROSS) -shell-escape
CLEAN := $(RM) -r $(DROSS) $(LOCAL_DROSS) qr.tex *.pdf .switch-gls svg-inkscape
.PHONY: book
book: $(RELEASE) ## Compile the pdf
$(RELEASE): $(DBOOK)
@$(CP) $< $@
targets += $(RELEASE)
.PHONY: LOCTEX
LOCTEX: $(wildcard *.tex)
......@@ -55,6 +58,8 @@ check: ## Check you have the project dependencies
@command -v latexmk >/dev/null || ( echo install latexmk && exit 1 )
@command -v inkscape >/dev/null || ( echo install inkscape && exit 1 )
targets += check
help: ## Print the help message
@awk 'BEGIN {FS = ":.*?## "} /^[0-9a-zA-Z._-]+:.*?## / {printf "\033[36m%s\033[0m : %s\n", $$1, $$2}' $(MAKEFILE_LIST) | \
sort | \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment