diff options
author | Romain Gonçalves <me@rgoncalves.se> | 2024-05-19 15:31:04 +0200 |
---|---|---|
committer | Romain Gonçalves <me@rgoncalves.se> | 2024-05-19 15:31:04 +0200 |
commit | fccbc8cad8459822ab196a3186a250c4f6ef95bf (patch) | |
tree | 7f4a1964c88c860efe5cfd411974eabf1f318b82 | |
parent | 2afd8dc75c9a4bb97d7da0c4061658da4219a1ef (diff) | |
download | rgoncalves.se-fccbc8cad8459822ab196a3186a250c4f6ef95bf.tar.gz |
refactor(Makefile): compliant with latest ssg update
-rw-r--r-- | Makefile | 15 |
1 files changed, 9 insertions, 6 deletions
@@ -1,19 +1,22 @@ .POSIX: -REMOTE := root@rgoncalves.se +REMOTE_HOST := root@rgoncalves.se REMOTE_DIR := /var/www/htdocs/rgoncalves.se OUTPUT_DIR := ./out TEMPORARY_DIR := ./tmp -BIN_DIR := ../ssg PATH := $(PATH):../ssg +SSG_WEBSITE_DOMAIN := rgoncalves.se +SSG_WEBSITE_TITLE := $(SSG_WEBSITE_DOMAIN) +SSG_WEBSITE_DESCRIPTION="devops and hacker D:" + .PHONY: all \ site \ clean site: clean - $(BIN_DIR)/ssg - $(BIN_DIR)/rssg + ssg + rssg preview: site python3 -m http.server --directory $(OUTPUT_DIR) --bind 127.0.0.1 @@ -22,5 +25,5 @@ clean: - rm -r $(OUTPUT_DIR) $(TEMPORARY_DIR) deploy: site - rsync -e ssh -avz --delete $(OUTPUT_DIR)/ $(REMOTE):$(REMOTE_DIR) - ssh $(REMOTE) chown -R www:www $(REMOTE_DIR) + rsync -e ssh -avz --delete $(OUTPUT_DIR)/ $(REMOTE_HOST):$(REMOTE_DIR) + ssh $(REMOTE_HOST) chown -R www:www $(REMOTE_DIR) |