[build] 'find' warning fix
authorroot <root@xa-s05.(none)>
Wed, 20 Jul 2005 08:35:23 +0000 (10:35 +0200)
committerroot <root@xa-s05.(none)>
Wed, 20 Jul 2005 08:35:23 +0000 (10:35 +0200)
Recent versions of find (Debian SID for example) warn about order of
min/maxdepth params. So reorder to keep the bugger happy.

Makefile
path_priority/Makefile

index a986f18..e107f83 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -22,7 +22,7 @@ export KRNLOBJ
 
 BUILDDIRS = libmultipath libcheckers path_priority \
            devmap_name multipath multipathd kpartx
-ALLDIRS        = $(shell find . -type d -maxdepth 1 -mindepth 1 ! -name \.git)
+ALLDIRS        = $(shell find . -maxdepth 1 -mindepth 1 -type d ! -name \.git)
 
 VERSION = $(shell basename ${PWD} | cut -d'-' -f3)
 INSTALLDIRS = devmap_name multipath multipathd kpartx path_priority
index a5c1abc..9be508e 100644 (file)
@@ -4,7 +4,7 @@
 #
 DEBUG = 0
 
-SUBDIRS        = $(shell find . -type d -mindepth 1 -maxdepth 1|cut -c3-)
+SUBDIRS        = $(shell find . -mindepth 1 -maxdepth 1 -type d|cut -c3-)
 
 all:
        @for DIR in $(SUBDIRS); do \