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
|
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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue