Skip to content

Commit

Permalink
Merge pull request #8 from mkouhei/updates-makefile
Browse files Browse the repository at this point in the history
Updates generating atena Makefile.
  • Loading branch information
mkouhei committed Apr 22, 2017
2 parents 23c5f69 + 7e4f829 commit 4aec0f2
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions utils/Makefile-atena
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,23 @@ all: address.pdf
address.dvi: address.tex

%.pdf: %.dvi
dvipdfmx -f template/vlpgothic.map $<
#dvipdfmx -f template/vlpgothic.map $<
dvipdfmx -p 100mm,148mm $<

%.dvi: %.tex
## end of linting stuff
# end of linting stuff
platex $< # create draft input
-$(MAKEINDEX) -s address.ist $(<:%.tex=%)
platex $< # create draft content with correct spacing for index and toc
-$(MAKEINDEX) -s address.ist $(<:%.tex=%) # recreate index with correct page number
platex $< # recreate toc with correct page number

prebuild: ## prebuild; prepare genenga
virtualenv -p /usr/bin/python3 ./.venv
.venv/bin/python -m pip install Genenga

%.tex: prebuild address.csv
.venv/bin/genenga -t template/address.mustache address.csv

check-precommit:
make address.dvi
Expand Down

0 comments on commit 4aec0f2

Please sign in to comment.