mirror of
https://codeberg.org/openpgp/notes.git
synced 2025-09-09 11:19:41 +02:00
Add ASSETSDIR variable to more conveniently address assets dir
Signed-off-by: David Runge <dave@sleepmap.de>
This commit is contained in:
parent
ace6499cbb
commit
e9340c8bda
1 changed files with 2 additions and 1 deletions
|
@ -16,6 +16,7 @@ LYCHEE ?= lychee
|
|||
PRINTF ?= printf
|
||||
RM ?= rm
|
||||
WATCHEXEC ?= watchexec
|
||||
ASSETSDIR = assets
|
||||
SOURCEDIR = source
|
||||
BUILDDIR = build
|
||||
|
||||
|
@ -25,7 +26,7 @@ clean-all: clean
|
|||
|
||||
# convert all SVG to plain SVGs without metadata and paths instead of text
|
||||
convert-svg:
|
||||
for file in $(SOURCEDIR)/../assets/inkscape/*.svg $(SOURCEDIR)/../assets/drawio/*.svg; do if [[ ! -f $(SOURCEDIR)/plain_svg/$$(basename $$file) ]]; then $(INKSCAPE) --export-text-to-path --export-plain-svg --export-filename=$(SOURCEDIR)/plain_svg/$$(basename $$file) $$file; fi; done
|
||||
for file in $(ASSETSDIR)/inkscape/*.svg $(ASSETSDIR)/drawio/*.svg; do if [[ ! -f $(SOURCEDIR)/plain_svg/$$(basename $$file) ]]; then $(INKSCAPE) --export-text-to-path --export-plain-svg --export-filename=$(SOURCEDIR)/plain_svg/$$(basename $$file) $$file; fi; done
|
||||
|
||||
epub: convert-svg
|
||||
@$(SPHINXBUILD) -M epub "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue