diff --git a/Makefile b/Makefile index caccc0d..88e5c08 100644 --- a/Makefile +++ b/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