build: erzeuge Build-Verzeichnis für Stamp-Dateien

This commit is contained in:
Lars Kruse 2023-05-08 09:50:14 +02:00
parent 429db1dc94
commit a3fe06ee5f

View file

@ -23,6 +23,7 @@ help:
build: $(BUILD_STAMP_HUGO)
$(BUILD_STAMP_HUGO): $(BUILD_DEPS) $(BUILD_STAMP_THEME) Makefile
@mkdir -p "$(dir $@)"
@HUGO_ENV=production hugo $(HUGO_OPTS)
@touch "$@"
@ -30,6 +31,7 @@ $(BUILD_STAMP_HUGO): $(BUILD_DEPS) $(BUILD_STAMP_THEME) Makefile
build-theme: $(BUILD_STAMP_THEME)
$(BUILD_STAMP_THEME):
@mkdir -p "$(dir $@)"
cd "$(THEME_DIR)" \
&& npm install \
&& npm run build