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.
openpower.foundation_sw_dev/Makefile

30 lines
672 B
Makefile

#!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/