build: erzeuge Build-Verzeichnis für Stamp-Dateien
This commit is contained in:
parent
429db1dc94
commit
a3fe06ee5f
1 changed files with 2 additions and 0 deletions
2
Makefile
2
Makefile
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue