Use shell to invoke ChordPro
Some checks failed
Build / build (push) Failing after 3s

This allows us to run the makefile with or without a shell function
with Docker. This should work both locally and during build in the
pipeline.
This commit is contained in:
Emil Miler 2024-06-01 11:53:13 +02:00
parent d1ba57009d
commit 8b25dbdca2

View File

@ -6,13 +6,15 @@ SONG_PDF := $(patsubst %$(SRC_EXTENSION),%.pdf,$(SONG_CHO))
SONG_HTML := $(patsubst %$(SRC_EXTENSION),%.html,$(SONG_CHO))
SONGBOOK := songbook.pdf
SHELL := $(shell echo $$SHELL)
.DEFAULT_GOAL := all
%.pdf: %$(SRC_EXTENSION)
chordpro --config=chordpro.json -o $@ $<
$(SHELL) -c 'chordpro --config=chordpro.json -o $@ $<'
%.html: %$(SRC_EXTENSION)
chordpro --config=chordpro.json -o $@ $<
$(SHELL) -c 'chordpro --config=chordpro.json -o $@ $<'
all: $(SONG_PDF) $(SONG_HTML) $(SONGBOOK)