case "$am_makefile" in
*/*)
+ amdir=`echo "$am_makefile" | sed 's,//*[^/][^/]*$,,g'`
+ echo "subdir=$amdir" >&4
cat $AM_DIR/dist-subd-vars.am >&4
- cat $AM_DIR/dist-subd.am >&5 ;;
+ cat $AM_DIR/dist-subd.am >&5
+ ;;
*)
cat $AM_DIR/dist-vars.am >&4
- if test -n "$SUBDIRS"; then cat $AM_DIR/dist-subd-top.am >&5
- else cat $AM_DIR/dist.am >&5; fi ;;
+ if test -n "$SUBDIRS"; then
+ cat $AM_DIR/dist-subd-top.am >&5
+ else
+ cat $AM_DIR/dist.am >&5
+ fi
+ ;;
esac
sed '/^[^#=]*:/,$d' ${am_makefile}.am >&4