fixed Dockerfile
This commit is contained in:
@@ -1 +1,2 @@
|
|||||||
build
|
build
|
||||||
|
.DS_Store
|
||||||
|
|||||||
@@ -0,0 +1,5 @@
|
|||||||
|
FROM archlinux:latest
|
||||||
|
|
||||||
|
RUN pacman -Syu --noconfirm texlive texlive-langgerman lilypond pdftk perl-template-toolkit make inkscape
|
||||||
|
|
||||||
|
WORKDIR /tmp
|
||||||
@@ -1,6 +1,8 @@
|
|||||||
.PHONY: all
|
.PHONY: all
|
||||||
tex_deps = build variables.tt library/*/*/*.tt song_choices.csv song_template.tt propers/*.tt purpose_processing.tt
|
tex_deps = build variables.tt library/*/*/*.tt song_choices.csv song_template.tt propers/*.tt purpose_processing.tt
|
||||||
all: build leadsheet_collection.pdf print_a3.pdf print_a4.pdf clean_intermediate
|
tpage = /usr/bin/vendor_perl/tpage
|
||||||
|
docker = podman
|
||||||
|
all: leadsheet_collection.pdf print_a3.pdf print_a4.pdf clean_intermediate
|
||||||
%.pdf: %.tex
|
%.pdf: %.tex
|
||||||
cd build && \
|
cd build && \
|
||||||
lualatex --shell-escape $<
|
lualatex --shell-escape $<
|
||||||
@@ -26,13 +28,13 @@ songsheet_a5.pdf: songsheet.pdf
|
|||||||
cd build && \
|
cd build && \
|
||||||
pdfjam -o $@ --nup 2x1 --paper a5paper --landscape $<
|
pdfjam -o $@ --nup 2x1 --paper a5paper --landscape $<
|
||||||
songsheet.tex: songsheet.tt $(tex_deps) header.tt head.tt footer.tt
|
songsheet.tex: songsheet.tt $(tex_deps) header.tt head.tt footer.tt
|
||||||
tpage $< > build/$@
|
$(tpage) $< > build/$@
|
||||||
musician_scores.tex: musician_scores.tt $(tex_deps)
|
musician_scores.tex: musician_scores.tt $(tex_deps)
|
||||||
tpage $< > build/$@
|
$(tpage) $< > build/$@
|
||||||
leadsheet_collection.tex: musician_scores.tt $(tex_deps)
|
leadsheet_collection.tex: musician_scores.tt $(tex_deps)
|
||||||
tpage --define parts=band $< > build/$@
|
$(tpage) --define parts=band $< > build/$@
|
||||||
chornoten.tex: musician_scores.tt $(tex_deps)
|
chornoten.tex: musician_scores.tt $(tex_deps)
|
||||||
tpage --define parts=choir $< > build/$@
|
$(tpage) --define parts=choir $< > build/$@
|
||||||
clean_intermediate:
|
clean_intermediate:
|
||||||
cd build && \
|
cd build && \
|
||||||
rm songsheet_a3part.pdf songsheet_a4part.pdf songsheet_a5.pdf
|
rm songsheet_a3part.pdf songsheet_a4part.pdf songsheet_a5.pdf
|
||||||
@@ -40,4 +42,10 @@ build:
|
|||||||
mkdir build
|
mkdir build
|
||||||
clean:
|
clean:
|
||||||
rm -r build
|
rm -r build
|
||||||
|
init:
|
||||||
|
git submodule update --init --recursive
|
||||||
|
init_docker:
|
||||||
|
$(docker) build -t songsheet_generator .
|
||||||
|
build_in_docker:
|
||||||
|
$(docker) run -v `pwd`:/tmp songsheet_generator make
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user