* Makefile.in (distclean, bootstrap-clean, maintainer-clean):
[bpt/emacs.git] / Makefile.in
index db02813..a0d9117 100644 (file)
@@ -543,6 +543,11 @@ set_installuser=for installuser in $${LOGNAME} $${USERNAME} $${USER} \
 ## deleted the entire installed etc/ directory and recreated it.
 ## install-etcdoc installs the relevant DOC.
 
+## Note that we install etc/refcards/*.ps if present.
+## TODO we should compress these if GZIP_PROG is set.
+## It would be simpler to have a separate install rule for etc/refcards
+## (maybe move it to doc/refcards?).
+
 ## Note that the Makefiles in the etc directory are potentially useful
 ## in an installed Emacs, so should not be excluded.
 
@@ -578,7 +583,12 @@ install-arch-indep: lisp leim install-info install-man ${INSTALL_ARCH_INDEP_EXTR
          (cd $${dir}; tar -chf - . ) \
            | (cd $${dest}; umask 022; \
               tar -xvf - && cat > /dev/null) || exit 1; \
-         [ "$${dir}" != "${srcdir}/etc" ] || rm -f $${dest}/DOC* ; \
+         if [ "$${dir}" = "${srcdir}/etc" ]; then \
+             rm -f $${dest}/DOC* ; \
+             rm -f $${dest}/refcards/*.aux $${dest}/refcards/*.dvi; \
+             rm -f $${dest}/refcards/*.log; \
+         else true; \
+         fi; \
          for subdir in `find $${dest} -type d -print` ; do \
            chmod a+rx $${subdir} ; \
            rm -f $${subdir}/.gitignore ; \
@@ -849,6 +859,8 @@ distclean: FRC
        (cd leim;     $(MAKE) $(MFLAGS) distclean)
        (cd lisp;     $(MAKE) $(MFLAGS) distclean)
        (cd nextstep && $(MAKE) $(MFLAGS) distclean)
+       [ ! -d test/automated ] || \
+         cd test/automated && $(MAKE) $(MFLAGS) distclean
        ${top_distclean}
 
 ### `bootstrap-clean'
@@ -868,6 +880,8 @@ bootstrap-clean: FRC
        (cd leim;     $(MAKE) $(MFLAGS) maintainer-clean)
        (cd lisp;     $(MAKE) $(MFLAGS) bootstrap-clean)
        (cd nextstep && $(MAKE) $(MFLAGS) maintainer-clean)
+       [ ! -d test/automated ] || \
+         cd test/automated && $(MAKE) $(MFLAGS) bootstrap-clean
        [ ! -f config.log ] || mv -f config.log config.log~
        ${top_bootclean}
 
@@ -888,6 +902,8 @@ top_maintainer_clean=\
 maintainer-clean: bootstrap-clean FRC
        (cd src;      $(MAKE) $(MFLAGS) maintainer-clean)
        (cd lisp;     $(MAKE) $(MFLAGS) maintainer-clean)
+       [ ! -d test/automated ] || \
+         cd test/automated && $(MAKE) $(MFLAGS) maintainer-clean
        ${top_maintainer_clean}
 
 ### This doesn't actually appear in the coding standards, but Karl