You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
#!Makefile
|
|
|
|
|
|
|
|
HUGO=hugo-extended
|
|
|
|
|
|
|
|
.PHONY: build serve draft clean travis netlify
|
|
|
|
|
|
|
|
default all: build
|
|
|
|
|
|
|
|
build:
|
|
|
|
$(HUGO) --minify
|
|
|
|
@find public/ -name '*.html' ! -name '*.gz' -type f -exec sh -c "gzip -c -9 < {} > {}.gz" \;
|
|
|
|
@find public/ -name '*.css' ! -name '*.gz' -type f -exec sh -c "gzip -c -9 < {} > {}.gz" \;
|
|
|
|
@find public/ -name '*.js' ! -name '*.gz' -type f -exec sh -c "gzip -c -9 < {} > {}.gz" \;
|
|
|
|
|
|
|
|
travis:
|
|
|
|
$(MAKE) HUGO=./hugo build
|
|
|
|
|
|
|
|
netlify:
|
|
|
|
$(HUGO) --minify --quiet --baseURL="$DEPLOY_PRIME_URL"
|
|
|
|
|
|
|
|
draft:
|
|
|
|
$(HUGO) --minify --buildDrafts --buildFuture --buildExpired
|
|
|
|
|
|
|
|
serve:
|
|
|
|
$(HUGO) server --disableFastRender --watch
|
|
|
|
|
|
|
|
clean:
|
|
|
|
@rm -rf public/
|
|
|
|
@rm -rf resources/
|