From 567dbd584afab7ca1deaa6ca633050434c8b7b05 Mon Sep 17 00:00:00 2001 From: Bob Polis Date: Mon, 28 Sep 2020 16:05:59 +0200 Subject: [PATCH] added ftp upload to sync target --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 1217adb..1232333 100644 --- a/Makefile +++ b/Makefile @@ -44,8 +44,12 @@ $(BIN): $(OBJS) $(DEPS) %.d: ; -sync: $(CODE) +sync: $(CODE) code/index.html rsync -av code/ pi@www.swiftcoder.nl:/var/www/html/cpp1/ + @for f in $(CODE) code/index.html ;\ + do \ + curl -nT $$f ftp://student.aii.avans.nl/doc/rpbpolis1/ ;\ + done clean: $(RM) $(OBJS) $(DEPS) $(BIN)