forked from neff/neff-steindesign.de
Makefile update
This commit is contained in:
parent
44bd780665
commit
980669fe6b
8
Makefile
8
Makefile
|
|
@ -7,7 +7,7 @@ RSYNC = /usr/bin/rsync
|
|||
JPEGOPTIM = /usr/bin/jpegoptim
|
||||
OPTIPNG = /usr/bin/optipng
|
||||
|
||||
.PHONY: all clean server jpegoptim optipng
|
||||
.PHONY: all clean server jpegoptim optipng site staging
|
||||
.SUFFIXES: .jpg .png .md .html .js .css .scss .toml
|
||||
|
||||
DIRS = content data static themes/$(THEME) resources
|
||||
|
|
@ -17,6 +17,12 @@ all: $(DIRS) public/*
|
|||
clean:
|
||||
rm -rf public/ resources/
|
||||
|
||||
site:
|
||||
$(HUGO) --gc
|
||||
|
||||
staging:
|
||||
$(HUGO) --buildDrafts --buildExpired --buildFuture --gc
|
||||
|
||||
server: themes/$(THEME)/package-lock.json themes/$(THEME)/src
|
||||
$(HUGO) server --buildDrafts --buildExpired --buildFuture --gc
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue