Makefile update

This commit is contained in:
Patrick Neff 2019-01-17 15:28:22 +01:00
parent 94bb755b27
commit 816709f065
1 changed files with 4 additions and 2 deletions

View File

@ -7,7 +7,7 @@ RSYNC = /usr/bin/rsync
JPEGOPTIM = /usr/bin/jpegoptim JPEGOPTIM = /usr/bin/jpegoptim
OPTIPNG = /usr/bin/optipng 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 .SUFFIXES: .jpg .png .md .html .js .css .scss .toml
DIRS = content data static themes/$(THEME) resources DIRS = content data static themes/$(THEME) resources
@ -17,7 +17,9 @@ all: $(DIRS) public/*
clean: clean:
rm -rf public/ resources/ 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: site:
$(HUGO) --gc $(HUGO) --gc