Revision 7559
Added by Aaron Marcuse-Kubitza almost 12 years ago
Makefile | ||
---|---|---|
1 | 1 |
##### Configuration |
2 | 2 |
|
3 | 3 |
remote_host ?= jupiter |
4 |
remote_basepath ?= /data/dev/aaronmk/bien |
|
4 | 5 |
|
5 | 6 |
|
6 | 7 |
selfDir_NzrNZp := $(dir $(lastword $(MAKEFILE_LIST))) |
... | ... | |
32 | 33 |
|
33 | 34 |
md5s: _always $(backups:%=%.md5) ; |
34 | 35 |
|
35 |
%.md5: % |
|
36 |
nice -n +5 md5sum $<|cut -d ' ' -f 1 >$@ |
|
37 |
|
|
38 |
# Run with `make -s` to avoid echoing make commands |
|
39 |
%.md5/test: %.md5 % _always |
|
40 |
echo '$(shell cat $<) $*'|nice -n +5 md5sum -$(if $(isMac),v)c /dev/stdin |
|
41 |
|
|
42 | 36 |
#### SQL |
43 | 37 |
|
44 | 38 |
# Must come before %.sql with no prerequisites to be matched first |
... | ... | |
89 | 83 |
|
90 | 84 |
##### Synchronization |
91 | 85 |
|
92 |
remote := $(remote_user)@$(remote_host):/data/dev/aaronmk/bien/backups/ |
|
93 |
|
|
94 | 86 |
rsyncBackups := $(rsync) --include="/*.backup" --include="/*.sql"\ |
95 | 87 |
--include="/*.csv" --include="/*.md5" --exclude="**" |
96 | 88 |
|
Also available in: Unified diff
Moved Checksums from backups/Makefile to lib/common.Makefile so all dirs (including inputs/) can use md5sum testing