-
Notifications
You must be signed in to change notification settings - Fork 8
/
Makefile.sync
38 lines (27 loc) · 945 Bytes
/
Makefile.sync
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# -*- mode: Makefile -*-
# To delete extraneous files on the remote side, do the following:
#
# make RSYNC='/usr/bin/rsync --delete --delete-excluded' -f Makefile.sync synci
#
RSYNC = /usr/bin/rsync
RSYNC_EXCLUDE = --exclude .git --exclude '*~' \
--exclude '\#*\#' --exclude '.\#*'
RSYNC_DELETE = --delete --delete-excluded
RSYNC_ARGS = -aztv $(RSYNC_EXCLUDE)
# This will probably be "../geni-portal"
SRC_DIR = ../$(notdir $(CURDIR))
.PHONY: syncb syncd syncm synci syncs synct syncp syncc
default:
echo "Choose a specific sync target."
syncb:
$(RSYNC) $(RSYNC_ARGS) $(SRC_DIR) bigslide.gpolab.bbn.com:
syncd:
$(RSYNC) $(RSYNC_ARGS) $(SRC_DIR) dagoola.gpolab.bbn.com:
syncm:
$(RSYNC) $(RSYNC_ARGS) $(SRC_DIR) marilac.gpolab.bbn.com:
synci:
$(RSYNC) $(RSYNC_ARGS) $(SRC_DIR) illyrica.gpolab.bbn.com:
syncc:
$(RSYNC) $(RSYNC_ARGS) $(SRC_DIR) cascade.gpolab.bbn.com:
syncn:
$(RSYNC) $(RSYNC_ARGS) $(SRC_DIR) nye.gpolab.bbn.com: