amdir=`echo "$am_makefile" | sed 's,//*[^/][^/]*$,,g'`
if test "$amdir" = "$am_makefile"; then
# Bogus.
- amdir=
+ amdir=.
fi
+ # Look for certain common files and make sure they are included.
+ dlist=
+ for cfile in $common; do
+ if test -f $amdir/$cfile; then
+ dlist="$dlist $cfile"
+ fi
+ done
+ echo "DIST_COMMON = $dlist" >&4
+ # Include "dist" boilerplate.
case "$am_makefile" in
*/*)
cat $AM_DIR/dist-subd-vars.am >&4
fi
;;
esac
- # Now look for certain common files and make sure they are included.
- dlist=
- for cfile in $common; do
- if test -f $amdir/$cfile; then
- dlist="$dlist $cfile"
- fi
- done
- echo "DIST_COMMON = $dlist" >&4
sed '/^[^#=]*:/,$d' ${am_makefile}.am >&4
sed -n '/^[^#=]*:/,$p' ${am_makefile}.am >&5