+Thu Apr 28 11:44:59 EEST 2005 Pekka Riikonen <priikone@silcnet.org>
+
+ * The '.in' suffix with source file suffixes expects source code
+ format for the distdefs.
+
Sun Apr 24 21:11:49 EEST 2005 Pekka Riikonen <priikone@silcnet.org>
* Fixed undefining to actually work.
\! -name \*\.[cC]++ -a \
\! -name \*\.m -a \
\! -name \*\.[hH] -a \
- \! -name \*\.hh \)`
+ \! -name \*\.hh -a \
+ \! -name \*\.[cC]\.in -a \
+ \! -name \*\.[cC][cCpP]\.in -a \
+ \! -name \*\.[cC][xX][xX]\.in -a \
+ \! -name \*\.[cC][pP][pP]\.in -a \
+ \! -name \*\.[cC]++\.in -a \
+ \! -name \*\.m\.in -a \
+ \! -name \*\.[hH]\.in -a \
+ \! -name \*\.hh\.in \)`
files=`echo $files | sed 's/$am_distdir//'`
# Take away noprocess list
-name \*\.[cC]++ -o \
-name \*\.m -o \
-name \*\.[hH] -o \
- -name \*\.hh \)`
+ -name \*\.hh -o \
+ -name \*\.[cC]\.in -o \
+ -name \*\.[cC][cCpP]\.in -o \
+ -name \*\.[cC][xX][xX]\.in -o \
+ -name \*\.[cC][pP][pP]\.in -o \
+ -name \*\.[cC]++\.in -o \
+ -name \*\.m\.in -o \
+ -name \*\.[hH]\.in -o \
+ -name \*\.hh\.in \)`
# Take away noprocess list
if test -f autodist.noprocess; then
need to have '.ad' suffix.
Note that, the distdef format used in these files must be the non-source
-format.
+format, even if the file is source file. This is because the distdefs
+are processed during source tree preparation, and the source file will
+have all distdefs removed when it is compiled.
@menu
* Distdefines:: Using distdefs in files
.hh
@end example
+Also, any file that has '.in' suffix with any of the above source file
+suffixes, the format inside the file must follow the source code format.
Using distdefs in any other file must follow the non-source format.
+Example:
+@example
+ .c.in
+ .h.in
+@end example
+
+In this example, in both of the files the source code format is used.
+
@node Invoking Autodist
@chapter Invoking Autodist