aboutsummaryrefslogtreecommitdiffhomepage
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 11 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index f21fe21..7303e82 100644
--- a/Makefile
+++ b/Makefile
@@ -1,15 +1,24 @@
+# Deploy options
RSYNC_PATH ?= sudo -u nginx rsync
REMOTE ?= user@192.168.0.100:/var/www/html
+# Email options
+EMAIL_ADDRESS ?= mail@example.net
+EMAIL_FONT ?= Iosevka
+EMAIL_COLOR ?= eeff11
+
all: build
build:
hugo --minify
deploy: build
- rsync --rsync-path="$(RSYNC_PATH)" -avP --delete public/ $(REMOTE)
+ rsync --rsync-path="$(RSYNC_PATH)" -avP --delete public/ "$(REMOTE)"
serve:
hugo serve --disableFastRender
-.PHONY: all build deploy serve
+email:
+ magick -background transparent -fill "#$(EMAIL_COLOR)" -font "$(EMAIL_FONT)" -size 220x60 -gravity center label:"$(EMAIL_ADDRESS)" -wave -15x150 ./static/img/text.png
+
+.PHONY: all build deploy serve email