diff --git a/Makefile b/Makefile index 79c8721..3cd87b2 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,7 @@ # Eryn Wells +BUILD_DIR=public + CONTENT_PATH=content DEPLOY_USER=eryn @@ -14,15 +16,17 @@ NETHACK_LOGFILE_DATA_FILE=data/nethack/logfile/$(HOSTNAME).json .PHONY: site deploy clean -site: nethack +site: @echo "Building site" - hugo --buildDrafts --buildFuture --enableGitInfo + hugo --buildDrafts --buildFuture --enableGitInfo --destination "$(BUILD_DIR)" deploy: site @echo "Deploying to $(DEPLOY_LOCATION)" - rsync -avz --no-times --no-perms --delete public/ "$(DEPLOY_LOCATION)" + rsync -avz --no-times --no-perms --delete "$(BUILD_DIR)/" "$(DEPLOY_LOCATION)" git tag -f deploy-$(shell date +%Y-%m-%d) +deployall: nethack deploy + nethack: nethack-logfile nethack-commit nethack-logfile: $(NETHACK_LOGFILE) @@ -43,4 +47,4 @@ weeknotes: $(PAGE_PATH) sed -I -e "s/%%WEEK_NUMBER%%/$(WEEK_NUMBER)/" "$(PAGE_PATH)" clean: - rm -rf public/ + rm -rf "$(BUILD_DIR)/"