Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
config
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Malin Freeborn
config
Compare revisions
fecc93be661dc8832ea8a77fde1698e3510ee01f to cd4f28174d67ee2f285ddf0bb23fbff6334b72aa
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
andonome/config
Select target project
No results found
cd4f28174d67ee2f285ddf0bb23fbff6334b72aa
Select Git revision
Branches
dev
master
run
Tags
0.9
Swap
Target
andonome/config
Select target project
andonome/config
1 result
fecc93be661dc8832ea8a77fde1698e3510ee01f
Select Git revision
Branches
dev
master
run
Tags
0.9
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (5)
automate help target
· 7f264bb9
Malin Freeborn
authored
1 month ago
7f264bb9
add help targets
· 12a55aca
Malin Freeborn
authored
1 month ago
12a55aca
place clean and all targets in vars
· 23cfd295
Malin Freeborn
authored
1 month ago
23cfd295
ensure make all updates targets
· 94b59943
Malin Freeborn
authored
1 month ago
94b59943
place check before other targets
· cd4f2817
Malin Freeborn
authored
1 month ago
cd4f2817
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Makefile
+8
-8
8 additions, 8 deletions
Makefile
vars
+28
-16
28 additions, 16 deletions
vars
with
36 additions
and
24 deletions
Makefile
View file @
cd4f2817
...
@@ -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
This diff is collapsed.
Click to expand it.
vars
View file @
cd4f2817
...
@@ -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)
This diff is collapsed.
Click to expand it.