From 816709f06528cde8e6c82e49e3b0981a4dead9cd Mon Sep 17 00:00:00 2001 From: Patrick Neff Date: Thu, 17 Jan 2019 15:28:22 +0100 Subject: [PATCH] Makefile update --- Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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