added ftp upload to sync target

This commit is contained in:
Bob Polis 2020-09-28 16:05:59 +02:00
parent 6626600c6a
commit 567dbd584a

View File

@ -44,8 +44,12 @@ $(BIN): $(OBJS) $(DEPS)
%.d: ; %.d: ;
sync: $(CODE) sync: $(CODE) code/index.html
rsync -av code/ pi@www.swiftcoder.nl:/var/www/html/cpp1/ 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: clean:
$(RM) $(OBJS) $(DEPS) $(BIN) $(RM) $(OBJS) $(DEPS) $(BIN)