Revision 8652
Added by Aaron Marcuse-Kubitza almost 12 years ago
inputs/GBIF/table.run | ||
---|---|---|
4 | 4 |
MySQL_export () |
5 | 5 |
{ |
6 | 6 |
echo_func "$@" |
7 |
inline_make <<'EOF' |
|
7 |
inline_make 3<<'EOF'
|
|
8 | 8 |
table.tsv: |
9 | 9 |
$(self_dir)/MySQL_export >$@ |
10 | 10 |
EOF |
lib/util.run | ||
---|---|---|
83 | 83 |
} |
84 | 84 |
|
85 | 85 |
if false; then ## usage: |
86 |
inline_make <<'EOF' |
|
86 |
inline_make 3<<'EOF'
|
|
87 | 87 |
target: |
88 | 88 |
$(self_dir)/cmd >$@ |
89 | 89 |
EOF |
... | ... | |
97 | 97 |
|
98 | 98 |
echo_func "$@" |
99 | 99 |
make --makefile=<(( |
100 |
cat |
|
100 |
cat /dev/fd/3
|
|
101 | 101 |
echo -n " |
102 | 102 |
.SUFFIXES: # turn off built-in suffix rules |
103 | 103 |
.SECONDARY: # don't automatically delete intermediate files |
Also available in: Unified diff
lib/util.run: inline_make (): pass Makefile commands using /dev/fd/3 (i.e. 3<<'EOF' ...) instead of stdin, to allow stdin to be used by commands that prompt the user