From d60297e4ddf1c927d2afed63874c0edf91f4c348 Mon Sep 17 00:00:00 2001 From: Patrick Neff Date: Thu, 17 Jan 2019 15:39:11 +0100 Subject: [PATCH] add upload target do makefile --- Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 65d2391..54fd7e2 100644 --- a/Makefile +++ b/Makefile @@ -7,7 +7,7 @@ RSYNC = /usr/bin/rsync JPEGOPTIM = /usr/bin/jpegoptim OPTIPNG = /usr/bin/optipng -.PHONY: all clean server jpegoptim optipng site staging theme +.PHONY: all clean server jpegoptim optipng site staging theme upload .SUFFIXES: .jpg .png .md .html .js .css .scss .toml DIRS = content data static themes/$(THEME) resources @@ -30,6 +30,9 @@ staging: server: themes/$(THEME)/package-lock.json themes/$(THEME)/src $(HUGO) server --buildDrafts --buildExpired --buildFuture --gc +upload: + $(RSYNC) -avz --delete public/ $(REMOTE) + $(DIRS): themes/$(THEME)/package-lock.json themes/$(THEME)/src $(HUGO) --gc @@ -39,5 +42,5 @@ themes/$(THEME)/package-lock.json: themes/$(THEME)/src: $(NPM) --prefix="themes/$(THEME)" run build -public/*: +upload: $(RSYNC) -avz --delete public/ $(REMOTE) \ No newline at end of file