forked from GENI-NSF/geni-portal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.sync
41 lines (29 loc) · 1.11 KB
/
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
39
40
41
# -*- 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."
bin/geni-ch-githash: .git
git rev-parse HEAD > bin/geni-ch-githash
syncb: bin/geni-ch-githash
$(RSYNC) $(RSYNC_ARGS) $(SRC_DIR) bigslide.gpolab.bbn.com:
syncd: bin/geni-ch-githash
$(RSYNC) $(RSYNC_ARGS) $(SRC_DIR) dagoola.gpolab.bbn.com:
syncm: bin/geni-ch-githash
$(RSYNC) $(RSYNC_ARGS) $(SRC_DIR) marilac.gpolab.bbn.com:
synci: bin/geni-ch-githash
$(RSYNC) $(RSYNC_ARGS) $(SRC_DIR) illyrica.gpolab.bbn.com:
syncc: bin/geni-ch-githash
$(RSYNC) $(RSYNC_ARGS) $(SRC_DIR) cascade.gpolab.bbn.com:
syncn: bin/geni-ch-githash
$(RSYNC) $(RSYNC_ARGS) $(SRC_DIR) nye.gpolab.bbn.com: