Browse Source

added a make file

Signed-off-by: Toshaan Bharvani <toshaan@vantosh.com>
master
Toshaan Bharvani 7 years ago
commit
d1c193550e
  1. 16
      Makefile

16
Makefile

@ -0,0 +1,16 @@
#!Makefile

HUGO=hugo

.PHONY: build serve

all: build

build:
$(HUGO)
@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" \;

serve:
$(HUGO) server --disableFastRender
Loading…
Cancel
Save