makefile: add makefile to run Hugo server with example site

This commit is contained in:
Marcin Mierzejewski 2020-05-02 13:43:05 +02:00
parent 239a1d4d83
commit 99828eca0e
2 changed files with 20 additions and 0 deletions

12
makefile Normal file
View file

@ -0,0 +1,12 @@
PWD ?= $(shell pwd)/
usage: ### Usage (default)
@echo
@echo "USAGE:"
@echo " make command [options]"
@echo
@echo "COMMANDS:"
@fgrep -h "##" $(MAKEFILE_LIST) | fgrep -v fgrep | sed 's/^/ /' | sed -e 's/\\$$//' | sed -e 's/#/ /g'
hugo-server: ## Run Hugo web server and serve the example site
cd exampleSite; hugo server --themesDir ../../ -t hugo-theme-console