diff --git a/Makefile b/Makefile index bf8f35b..65d2391 100644 --- a/Makefile +++ b/Makefile @@ -7,7 +7,7 @@ RSYNC = /usr/bin/rsync JPEGOPTIM = /usr/bin/jpegoptim OPTIPNG = /usr/bin/optipng -.PHONY: all clean server jpegoptim optipng site staging +.PHONY: all clean server jpegoptim optipng site staging theme .SUFFIXES: .jpg .png .md .html .js .css .scss .toml DIRS = content data static themes/$(THEME) resources @@ -17,7 +17,9 @@ all: $(DIRS) public/* clean: rm -rf public/ resources/ -theme: themes/$(THEME)/package-lock.json themes/$(THEME)/src +theme: + $(NPM) --prefix="themes/$(THEME)" install --save-dev + $(NPM) --prefix="themes/$(THEME)" run build site: $(HUGO) --gc