~gpanders/gpanders.com

63e313c2114e4a29ef490e09960857fb6d745500 — Gregory Anders 6 months ago 4cb2f16
Add Makefile
1 files changed, 15 insertions(+), 0 deletions(-)

A Makefile
A Makefile => Makefile +15 -0
@@ 0,0 1,15 @@
BASE_URL := gpanders.com
SITE_DIR := public

.PHONY: all
all: site.tar.gz

.PHONY: clean
clean:
	$(RM) -r $(SITE_DIR) site.tar.gz

$(SITE_DIR):
	hugo --cleanDestinationDir -d $@

site.tar.gz: $(SITE_DIR)
	tar --strip-components=1 -czf $@ $(SITE_DIR)