Hello,
I am trying to use sqlite3 as my Makefile shell. In order to have the
query outputs go to a file, I need to pass a file in to sqlite using its
-i flag. I rely on the process substitution feature in bash for the
.SHELLFLAGS to provide the file:
SHELL=/usr/bin/env sqlite3
.SHELLFLAGS=-init <(
Hello,
I am trying to use sqlite3 as my Makefile shell. In order to have the
query outputs go to a file, I rely on the process substitution feature
in bash for the .SHELLFLAGS:
SHELL=/usr/bin/env sqlite3
.SHELLFLAGS=-init <(echo ".output $@") $(DB)
I get this error:
/bin/sh: 1: Syntax error:
hat's good to know.
On Tue, May 26, 2015 at 5:14 AM, Paul Smith wrote:
On Mon, 2015-05-25 at 21:05 -0700, Afif Elghraoui wrote:
SHELL=/usr/bin/env sqlite3
.SHELLFLAGS=-init <(echo ".output $@") $(DB)
I get this error:
/bin/sh: 1: Syntax error: "(" unexpected
M
Hi, Malcolm,
On 05/26/2015 10:16 AM, Cook, Malcolm wrote:
Afif,
Are you trying to get the output from different SQL recipes to go into
different files.
Yes
This will be a problem when using sqlite3 as your make .SHELL.
Why? Because the contents of a make recipe is always passed to the .
I should clarify something:
On 05/26/2015 12:35 PM, Afif Elghraoui wrote:
On 05/26/2015 10:16 AM, Cook, Malcolm wrote:
This will be a problem when using sqlite3 as your make .SHELL.
Why? Because the contents of a make recipe is always passed to the
.SHELL as a parameter. Never on stdin
al command line invocation or hardcoding the
absolute path.
Thanks and regards
Afif
--
Afif Elghraoui
Laboratory for Pathogenesis of Clinical Drug Resistance and Persistence
San Diego State University
Alvarado Medical Center
6367 Alvarado Court, Suite 206
San Diego, CA 92120
p. 85
Many thanks for the responses, but there should have been more to my
post than what I originally wrote, since this was an email draft I
started a long time ago.
على الجمعـة 22 كانون الثاني 2016 08:57، كتب Afif Elghraoui:
> I'm looking for a way to be able to store custom makefile
done
export MAKEFLAGS
regards
Afif
1. http://savannah.gnu.org/bugs/?47880#comment1
On 01/22/2016 08:57 AM, Afif Elghraoui wrote:
Hello,
I'm looking for a way to be able to store custom makefile rules in
special folders.
I see that the Makefile variable .INCLUDE_DIRS is set to "/usr/