automake
[Top][All Lists]
Advanced

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

why forbidding "include" a sub-makefile.am with absolute path


From: 赵峰(远猷)
Subject: why forbidding "include" a sub-makefile.am with absolute path
Date: Mon, 29 Jun 2015 22:33:54 +0800

Hi guys,
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 @address@hidden
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

Attachment: 026248.png
Description: Binary data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]