Revision 13018
Added by Aaron Marcuse-Kubitza over 10 years ago
trunk/inputs/input.Makefile | ||
---|---|---|
314 | 314 |
$(exportHeader) |
315 | 315 |
$(cleanup) |
316 | 316 |
define import_install_ |
317 |
(. $(bin)/vegbien_dest; unset schemas; "time" nice -n +5\
|
|
317 |
(. $(bin)/vegbien_dest; unset schemas; "time" $(nice)\
|
|
318 | 318 |
env schema=$(datasrc) table=$* $(bin)/csv2db $(catSrcs) $(logInstall*)) |
319 | 319 |
$(if $(filter $(srcTable),$*),($(inDatasrc);\ |
320 | 320 |
echo 'ALTER TABLE "$(datasrc)"."$*" RENAME row_num TO "$*.row_num";')|"time"\ |
trunk/lib/common.Makefile | ||
---|---|---|
48 | 48 |
date = $(shell date +"$(dateFmt)") |
49 | 49 |
mtime = $(shell $(if $(isMac),stat -f %Sm -t "$(dateFmt)" $(1),date\ |
50 | 50 |
--reference=$(1) +"$(dateFmt)")) |
51 |
nice := nice -n +5 |
|
51 | 52 |
|
52 | 53 |
# Terminal |
53 | 54 |
esc := '[' |
... | ... | |
132 | 133 |
##### Checksums |
133 | 134 |
|
134 | 135 |
%.md5: % |
135 |
nice -n +5 md5sum $<|cut -d ' ' -f 1 >$@
|
|
136 |
$(nice) md5sum $<|cut -d ' ' -f 1 >$@
|
|
136 | 137 |
|
137 | 138 |
# Run with `make -s` to avoid echoing make commands |
138 | 139 |
%.md5/test: %.md5 % _always |
139 |
echo '$(shell cat $<) $*'|nice -n +5 md5sum -$(if $(isMac),v)c /dev/stdin
|
|
140 |
echo '$(shell cat $<) $*'|$(nice) md5sum -$(if $(isMac),v)c /dev/stdin
|
|
140 | 141 |
|
141 | 142 |
##### Compression |
142 | 143 |
|
Also available in: Unified diff
lib/common.Makefile: added $(nice) and use it everywhere its definition is used