[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: variables from shell output in makefile -> Solution



Hello,
Many thanks for all the suggestions.
I found my mistake.
By reading 
http://www.gnu.org/software/make/manual/make.html#Command-Syntax
saw this:
" A variable definition in a ?rule context? which is indented by a tab as the
first character on the line, will be considered a command line, not a make
variable definition, and passed to the shell."

So, rewrote the file to set variables at begining, outside any target rule.
After some cleaning, the file is much more "elegant".

Unfortunately, the 
dh_installdir php-java-bridge/var/lib/tomcat5/webapps

did not work as expected. I will try again tomorrow, looking for some mistake.



Many thanks.
Andre Felipe Machado
http://www.techforce.com.br







Reply to: