Sun May 1 12:31:55 EEST 2005 Pekka Riikonen <priikone@silcnet.org>
- * Added AD_ENABLE_DEPENDENCIES macro to enable Autodist
- dependencies in makefiles.
+ * Added support for dependencies in makefiles.
+
+ * Added AD_DISABLE_DEPENDENCIES macro to disable Autodist
+ dependencies in makefiles. Added support for dependencies
+ in makefiles.
* Added -p option to Autodist. It can be used to a process file
from the command line.
# Process AD_INIT
sed -e "/AD_INIT/s//AC_INIT([$distribution], [$dist_version], [$bug_report], [$package])/" $fname > $fname.tmp
- # Remove AD_ENABLE_DEPENDENCIES
- sed -e "/^AD_ENABLE_DEPENDENCIES/d" $fname.tmp > $fname
+ # Remove AD_DISABLE_DEPENDENCIES
+ sed -e "/^AD_DISABLE_DEPENDENCIES/d" $fname.tmp > $fname
# Process for distribution
rm -f $fname.tmp
#
ad_make_makefile_am()
{
- local am_deps=false
+ local am_deps=true
local f=$1
local fname=$2
- # Enable dependencies if requested
+ # Disable dependencies if requested
dc=`sed 's/^[ ]*//' < configure.ad | grep -v "^#" \
- | grep "AD_ENABLE_DEPENDENCIES"`
- if test "$dc" = "AD_ENABLE_DEPENDENCIES"; then
- am_deps=true
+ | grep "AD_DISABLE_DEPENDENCIES"`
+ if test "$dc" = "AD_DISABLE_DEPENDENCIES"; then
+ am_deps=false
fi
# Header for the Makefile.am
@end defmac
-@defmac AD_ENABLE_DEPENDENCIES
+@defmac AD_DISABLE_DEPENDENCIES
-This macro is used to enable Autodist dependencies in 'Makefile.ad' files.
-If this macro is used, then after editing 'Makefile.ad' file running
-Autodist manually is not required, but it is run automatically when the
-source is compiled with 'make'. This macro has no arguments.
+This macro is used to disable Autodist dependencies in 'Makefile.ad'
+files. If this macro is used, then after editing 'Makefile.ad' file the
+Autodist must be run manually. When dependencies are enabled editing
+Autodist is run automatically when source is compiled with 'make'.
+Dependencies make the development easier. This macro has no arguments.
Note that, the dependencies are enabled only in the prepared source tree.
Depedencies are not delivered to distribution, as they would require the