Makefile update

This commit is contained in:
Patrick Neff 2019-01-17 15:08:14 +01:00
parent 44bd780665
commit 980669fe6b
1 changed files with 7 additions and 1 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 .PHONY: all clean server jpegoptim optipng site staging
.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,6 +17,12 @@ all: $(DIRS) public/*
clean: clean:
rm -rf public/ resources/ rm -rf public/ resources/
site:
$(HUGO) --gc
staging:
$(HUGO) --buildDrafts --buildExpired --buildFuture --gc
server: themes/$(THEME)/package-lock.json themes/$(THEME)/src server: themes/$(THEME)/package-lock.json themes/$(THEME)/src
$(HUGO) server --buildDrafts --buildExpired --buildFuture --gc $(HUGO) server --buildDrafts --buildExpired --buildFuture --gc