Re: 回复: Re: why forbidding "include" a sub-makefile.am with absolute path

2015-06-30 Thread Bob Friesenhahn

On Tue, 30 Jun 2015, 远猷 wrote:


thanks for your reply!

but why forbidding “include” a sub-makefiles.am with absolute path?


Automake projects are expected to be self-contained and not refer to 
anything outside of the package.


Bob
--
Bob Friesenhahn
bfrie...@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,http://www.GraphicsMagick.org/

回复: Re: why forbidding "include" a sub-makefile.am with absolute path

2015-06-29 Thread 远猷
thanks for your reply!

but why forbidding “include” a sub-makefiles.am with absolute path?


from 
Alimei-Android--发件人:Nick
 Bowler日 期:2015年06月30日 
01:05:39收件人:赵峰(远猷)抄 送:automake主 
题:Re: why forbidding "include" a sub-makefile.am with absolute pathOn 
2015-06-29 22:33 +0800, 赵峰(远猷) wrote:
> I find the following code in automake.
> >my $PATH_PATTERN = '(\w|[+/.-])+';
> ># This will pass through anything not of the prescribed form.
> >my $INCLUDE_PATTERN = ('^include\s+'
> >                       . '((\$\(top_srcdir\)/' . $PATH_PATTERN . ')'
> >                       . '|(\$\(srcdir\)/' . $PATH_PATTERN . ')'
> >                       . '|([^/\$]' . $PATH_PATTERN . '))\s*(#.*)?' . "\$");
> 
> but why need forbidding "include" sub-makefile.ams with absolute path
> by the last line?  In my Makefile.am, i need to include another
> sub-makefile from the path in a variable(ANOTHER_PJ_DIR) declared with
> AC_SUBET> Makefile.am
> > include @another_pj_...@common.mk
> the ANOTHER_PJ_DIR contains an absolute path of another project, but
> the include does't parsed by automake.How can i do it?thx!
> miles.zhaof

Configure substitutions (AC_SUBST) cannot work because Automake includes
are expanded only once, when Automake is run.

The generated Makefile.in file (which gets processed by configure) does
not contain the include commands at all.

Regards,
-- 
Nick Bowler, Elliptic Technologies (http://www.elliptictech.com/)