Project

General

Profile

« Previous | Next » 

Revision 7559

Moved Checksums from backups/Makefile to lib/common.Makefile so all dirs (including inputs/) can use md5sum testing

View differences:

backups/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

  
lib/common.Makefile
104 104
# Run with `make -s` to avoid echoing make commands
105 105
version: _always
106 106
	echo $(version)
107

  
108
##### Checksums
109

  
110
%.md5: %
111
	nice -n +5 md5sum $<|cut -d ' ' -f 1 >$@
112

  
113
# Run with `make -s` to avoid echoing make commands
114
%.md5/test: %.md5 % _always
115
	echo '$(shell cat $<)  $*'|nice -n +5 md5sum -$(if $(isMac),v)c /dev/stdin

Also available in: Unified diff