1 |
10759
|
aaronmk
|
#!/bin/bash -e
|
2 |
13409
|
aaronmk
|
. "$(dirname "${BASH_SOURCE[0]}")"/local.run
|
3 |
10759
|
aaronmk
|
.rel ../sh/db_make.sh
|
4 |
|
|
.rel ../sh/datasrc.sh
|
5 |
|
|
|
6 |
|
|
if self_not_included; then
|
7 |
|
|
|
8 |
|
|
: "${schema="$(log+ 2 cd "$top_dir"; basename "$PWD")"}"; export schema
|
9 |
|
|
dir2schema
|
10 |
|
|
|
11 |
11169
|
aaronmk
|
datasrc_make() # runs make in datasrc dir
|
12 |
|
|
# requires Makefile in datasrc dir with `include ../input.Makefile`
|
13 |
|
|
{
|
14 |
12779
|
aaronmk
|
begin_target
|
15 |
11978
|
aaronmk
|
if remaking; then set -- "${@/%/-remake}"; fi #replace empty str at end (/%)
|
16 |
11169
|
aaronmk
|
make --directory="$top_dir" "$@"
|
17 |
|
|
}
|
18 |
|
|
|
19 |
10759
|
aaronmk
|
fi
|