mirror of
https://github.com/flynx/photobook.git
synced 2025-10-29 18:30:10 +00:00
experimenting with automatic web version generation...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
9be9ed3062
commit
0a87ae4087
@ -9,6 +9,8 @@
|
|||||||
|
|
||||||
.DEFAULT_GOAL := all
|
.DEFAULT_GOAL := all
|
||||||
|
|
||||||
|
#SHELL := bash
|
||||||
|
|
||||||
ifeq ($(DEBUG),)
|
ifeq ($(DEBUG),)
|
||||||
STDERR := > /dev/null
|
STDERR := > /dev/null
|
||||||
endif
|
endif
|
||||||
@ -79,6 +81,29 @@ spreads.tex: $(SPREAD_DIR) $(wildcard $(SPREAD_DIR)/*/*) $(TEMPLATE_FILES)
|
|||||||
block.pdf: $(SPREADS)
|
block.pdf: $(SPREADS)
|
||||||
|
|
||||||
|
|
||||||
|
# XXX need to also include covers and endpapers (optionally?)
|
||||||
|
web.tex: setup.tex
|
||||||
|
{ \
|
||||||
|
echo "% This file is generated via make web.tex" \
|
||||||
|
echo "% see the Makefile for info" \
|
||||||
|
echo "% do not edit directly" \
|
||||||
|
echo \
|
||||||
|
echo "\input{setup}" \
|
||||||
|
echo \
|
||||||
|
echo "\setlength\bleed{0mm}" \
|
||||||
|
echo "\setlength\bindingoffset{0mm}" \
|
||||||
|
echo \
|
||||||
|
echo "\ChangeLayout{endpaper}" \
|
||||||
|
echo \
|
||||||
|
echo "\pagecolor{black}" \
|
||||||
|
echo \
|
||||||
|
echo "\begin{document}" \
|
||||||
|
echo "\includepdf[pages={{},1-}, nup=2x1, delta=0.3mm 0.3mm]{block}" \
|
||||||
|
echo "\end{document}" \
|
||||||
|
echo \
|
||||||
|
} > $@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
# production targets...
|
# production targets...
|
||||||
|
|||||||
@ -64,6 +64,8 @@ Structure
|
|||||||
|
|
||||||
### `web.tex`
|
### `web.tex`
|
||||||
|
|
||||||
|
<!-- XXX this is quite generic, can we generate it? -->
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Workflow
|
Workflow
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user