forked from neff/neff-steindesign.de
Makefile update
This commit is contained in:
parent
94bb755b27
commit
816709f065
6
Makefile
6
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
|
||||
|
|
|
|||
Loading…
Reference in New Issue