From 90a3f0d037818bc271c4a4f7d814bcfbf0eef61e Mon Sep 17 00:00:00 2001
From: Martin Mares <mj@ucw.cz>
Date: Fri, 21 Feb 2020 19:06:40 +0100
Subject: [PATCH] Makefile: upload of the whole book

---
 Makefile | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index 9d9a4e0..cf587e7 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,5 @@
 MAIN=ds
+CUSTOM_UPLOAD=1
 
 all: $(MAIN).pdf sync-view
 
@@ -28,4 +29,8 @@ clean::
 upload-all:
 	for ch in $(CHAPTERS) ; do $(MAKE) -C $$ch upload ; done
 
-.PHONY: chapters upload-all
+upload: $(MAIN).pdf
+	rsync $(MAIN).pdf jabberwock:www/static/vyuka/dsnotes/
+	ssh jabberwock 'cd web && make'
+
+.PHONY: chapters upload upload-all
-- 
GitLab