Fix bug #9147 - winbind can't fetch user or group info from AD via LDAP
[samba.git] / source4 / Makefile
index 959d0f43c77ad00c13301578266e8cfa0d4e6ada..03b4e7364aa3b3fc3a06a9be58802de306dfec40 100644 (file)
@@ -47,6 +47,8 @@ ALL_PREDEP = basics
 .NOTPARALLEL:
 endif
 
+base_srcdirs = $(srcdir) ../librpc/ ../lib/ ../libcli ../libgpo ../nsswitch ../libds
+
 include $(srcdir)/build/make/rules.mk
 include $(srcdir)/build/make/python.mk
 zlibsrcdir := ../lib/zlib
@@ -153,7 +155,7 @@ include $(srcdir)/static_deps.mk
 endif
 
 clean::
-       @find ../libds ../lib ../libcli ../librpc ../libgpo ../nsswitch -name '*.o' -o -name '*.ho' | xargs rm -f
+       @find $(base_srcdirs) -name '*.o' -o -name '*.ho' | xargs rm -f
 
 PUBLIC_HEADERS += ./version.h