Make Hugo

PUBLISHED ON 01/12/2017 — DEVELOPMENT

Using Makefile to deploy hugo.

all: help

help:
	@echo "make deploy"
	@echo " "


build:
	@hugo
	@echo " "

clean:	
	@echo "Cleaning public dir..."
	rm -rf ~/public_html/hugo/* 
	@echo " "

upload:	
	@echo "Uploading new content..."
	cp -r public/* ~/public_html/hugo/
	@echo " "

status:
	@git status
	@echo " "

add:
	@git add -A
	@echo " "

commit:
	@read -p "Commit message: " msg; git commit -m "$$msg"
	@echo " "

push:
	git push
	@echo " "

deploy: build clean upload

git: status add commit push