[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Shell for evaluating .SHELLFLAGS
From: |
Afif Elghraoui |
Subject: |
Shell for evaluating .SHELLFLAGS |
Date: |
Mon, 25 May 2015 21:05:05 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.6.0 |
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 <(echo ".output $@") $(DB)
I get this error:
/bin/sh: 1: Syntax error: "(" unexpected
Makefile:13: recipe for target 'fq' failed
It looks like .SHELLFLAGS is evaluated with /bin/sh regardless of what
SHELL is set to. Is there any way I could evaluate them with bash?
Many thanks and regards
Afif
- Shell for evaluating .SHELLFLAGS, Afif Elghraoui, 2015/05/26
- Shell for evaluating .SHELLFLAGS,
Afif Elghraoui <=
- RE: Shell for evaluating .SHELLFLAGS, Cook, Malcolm, 2015/05/26
- RE: Shell for evaluating .SHELLFLAGS, Cook, Malcolm, 2015/05/26
- Re: Shell for evaluating .SHELLFLAGS, Afif Elghraoui, 2015/05/26
- Re: Shell for evaluating .SHELLFLAGS, Afif Elghraoui, 2015/05/26
- RE: Shell for evaluating .SHELLFLAGS, Cook, Malcolm, 2015/05/26