[PATCH] Makefile.in: correct distclean rule

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Currently, "make distclean" gets lots of errors,
because none of the directories test/mm, test/device, ...
exist any more (they've been moved to old-tests/).
And even those latter never have a Makefile, so the only
sensible thing to do is remove those old subdirs from the
list in Makefile.in.

The change below does that as well as adding "test"
so that "make distclean" traverses into that subdirectory.
Before, "make check" would create test/bin,
but a top-level "make distclean" would not remove it.

FYI, initially I thought it was an oversight that
"make clean" did not remove artifacts from subdirectories,
so I made this additional change:

  diff --git a/Makefile.in b/Makefile.in
  ...
  -ifeq ($(MAKECMDGOALS),distclean)
  +ifneq ($(strip $(filter %clean,$(MAKECMDGOALS))),)

However, it could also be a policy decision, so I left it.

I'll commit the following shortly.

_______________________________________________
linux-lvm mailing list
linux-lvm@redhat.com
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

[Index of Archives]     [Gluster Users]     [Kernel Development]     [Linux Clusters]     [Device Mapper]     [Security]     [Bugtraq]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]

  Powered by Linux