Am Dienstag, 16. September 2014, 09:50:44 schrieb J. Lewis Muir:
> On 9/15/14, 11:00 PM, Nerses Gevorgyan wrote:
> > The Makefile is quite simple.
> > vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
> > TOP=../..
> >
> > JAVA_DIR = ~rafopar/Apps/Java/jdk1.7.0_67
>
> I've never used RULES_JAVA, so I'm not commenting on any of your
> reported problems, except I will say that your use of a tilde character
> ('~') in your JAVA_DIR path might be a problem. That is normally a
> special syntax recognized by certain shells that will be expanded to a
> user's home directory. That might not work as you're expecting in GNU
> Make. I suggest replacing that with an absolute path.
Hi Lewis
Gnu make by default uses /bin/sh to execute recipes (one invocation per line),
which should be a posix conformant(*) shell and thus support tilde expansion.
For make itself, the tilde is just another character with no special meaning.
The problem is that makefiles sometimes do non-trivial processing of make
variables before using them in recipes, where they (hopefully) get expanded by
the shell. This is very common in EPICS. If this processing is written in a
way that, for instance, expects an absolute path to start with a '/' then this
processing will fail even though the shell will expand it to one.
So, in practice, +1 to your recommendation.
Cheers
Ben
(*) Interestingly, neither my spell checker nor Webster knows this word, but
I've read it many, many times in English texts so it can't be completely
wrong, or can it?
________________________________
Helmholtz-Zentrum Berlin für Materialien und Energie GmbH
Mitglied der Hermann von Helmholtz-Gemeinschaft Deutscher Forschungszentren e.V.
Aufsichtsrat: Vorsitzender Prof. Dr. Dr. h.c. mult. Joachim Treusch, stv. Vorsitzende Dr. Beatrix Vierkorn-Rudolph
Geschäftsführung: Prof. Dr. Anke Rita Kaysser-Pyzalla, Thomas Frederking
Sitz Berlin, AG Charlottenburg, 89 HRB 5583
Postadresse:
Hahn-Meitner-Platz 1
D-14109 Berlin
http://www.helmholtz-berlin.de
- Replies:
- Re: Is RULES_JAVA broken? J. Lewis Muir
- References:
- Is RULES_JAVA broken? Nerses Gevorgyan
- Re: Is RULES_JAVA broken? J. Lewis Muir
- Navigate by Date:
- Prev:
Re: Is RULES_JAVA broken? J. Lewis Muir
- Next:
Re: Is RULES_JAVA broken? J. Lewis Muir
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
<2014>
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
Re: Is RULES_JAVA broken? Nerses Gevorgyan
- Next:
Re: Is RULES_JAVA broken? J. Lewis Muir
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
<2014>
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
|