diff --git a/Makefile b/Makefile index 2be8117..ea38408 100644 --- a/Makefile +++ b/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