ksh makefile frustration

So I have been working on a script that is driving a set of builds. I reached a point that in once place I wanted to pass in overriding variables to make than get set at configure time. So I thought this would be easy right:

(in ksh script)
make \\
    foo=/my/new/path \\
   bar=/my/new/path/lib \\
    install

That is what I thought would work... hey it works on the command line if you just type it out. WRONG (at least in my case). I ended up with the following in order to get it to work... but I don't like it, it leaves room for to many errors. I will keep working but for now...

(in ksh script)
env \\
    foo=/my/new/path \\
   bar=/my/new/path/lib \\
    make \\
        install

For what it's worth.

Comments:

Post a Comment:
Comments are closed for this entry.
About

dlacher

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today