Browse Source

slim down Makefile

master 2.0-rc4
mxmehl 6 months ago
parent
commit
2d6c6e6908
Signed by: mxmehl GPG Key ID: 2704E4AB371E2E92
  1. 12
      Makefile

12
Makefile

@ -16,7 +16,7 @@ prepare:
@[ -d $(BUILDDIR) ] || mkdir -p $(BUILDDIR)
.PHONY: build
build: prepare $(TARGETS_SONGS) $(TARGETS_EXTRA) index-az bundle-ay bundle-az archive ## build Songbook A-Y, A-Z, songbook.md and archive
build: prepare $(TARGETS_SONGS) $(TARGETS_EXTRA) index bundle archive ## build Songbook A-Y, A-Z, songbook.md and archive
build/Songs/%.pdf : src/Songs/%.odt
@soffice --headless "-env:UserInstallation=file:///tmp/LibreOffice_Conversion" --convert-to pdf:writer_pdf_Export --outdir build/Songs/ "$<"
@ -24,15 +24,13 @@ build/Songs/%.pdf : src/Songs/%.odt
build/Extra/%.pdf : src/Extra/%.odt
@soffice --headless "-env:UserInstallation=file:///tmp/LibreOffice_Conversion" --convert-to pdf:writer_pdf_Export --outdir build/Extra/ "$<"
index-ay:
@python3 scripts/create-index.py -t ay
index-az:
index:
@python3 scripts/create-index.py
@python3 scripts/create-index.py -t ay
bundle-ay:
@pdfunite build/Extra/Cover+Intro.pdf build/Extra/Index_A-Y.pdf build/Songs/[A-Y]* build/Extra/Akkorde.pdf build/Songbook_A-Y.pdf
bundle-az:
bundle:
@pdfunite build/Extra/Cover+Intro.pdf build/Extra/Index.pdf build/Songs/* build/Extra/Akkorde.pdf build/Songbook.pdf
@pdfunite build/Extra/Cover+Intro.pdf build/Extra/Index_A-Y.pdf build/Songs/[A-Y]* build/Extra/Akkorde.pdf build/Songbook_A-Y.pdf
archive:
@[ -e build/Songbook.tar.gz ] && rm -r build/Songbook.tar.gz || true

Loading…
Cancel
Save