Revision 3584
Added by Aaron Marcuse-Kubitza over 12 years ago
Makefile | ||
---|---|---|
17 | 17 |
# SVN |
18 | 18 |
addDir = $(if $(wildcard $(1)/),svn add --depth=empty $(1),svn mkdir $(1)) |
19 | 19 |
|
20 |
# rsync |
|
21 |
rsync := rsync$(if $(test), --dry-run) --archive --update --verbose\ |
|
22 |
--itemize-changes --progress --exclude=".*" |
|
23 |
local := ./ |
|
24 |
remote := $(src_user)@$(src_server):/home/bien/svn/inputs/ |
|
25 |
|
|
20 | 26 |
##### General targets |
21 | 27 |
|
22 | 28 |
all: |
... | ... | |
38 | 44 |
|
39 | 45 |
##### Input data |
40 | 46 |
|
41 |
rsync = rsync$(if $(test), --dry-run) --archive --update --verbose\ |
|
42 |
--itemize-changes --progress --exclude=".*" $(1)\ |
|
43 |
$(src_user)@$(src_server):/home/bien/svn/inputs/ ./ |
|
47 |
rsyncSrcs := $(rsync) --include="/*/" --include="/*/src/" --include="/*/src/**"\ |
|
48 |
--exclude="**" |
|
44 | 49 |
|
50 |
upload: _always |
|
51 |
$(rsyncSrcs) $(local) $(remote) |
|
45 | 52 |
download: _always |
46 |
$(download) |
|
47 |
download := $(call rsync,--include="/*/" --include="/*/src/"\ |
|
48 |
--include="/*/src/**" --exclude="**") |
|
53 |
$(rsyncSrcs) $(remote) $(local) |
|
49 | 54 |
|
50 | 55 |
##### Subdir forwarding |
51 | 56 |
|
Also available in: Unified diff
inputs/Makefile: Input data: Added upload target