s4-build: avoid finding python symlinks
authorAndrew Tridgell <tridge@samba.org>
Thu, 11 Feb 2010 13:11:11 +0000 (00:11 +1100)
committerAndrew Tridgell <tridge@samba.org>
Thu, 11 Feb 2010 14:08:12 +0000 (01:08 +1100)
emacs creates symlinks to .py files while you are editing them. This
could cause build failures.

source4/scripting/python/config.mk

index 3d255de00e662b95c554eed3fd70014dea4a737f..390f6c811a4df5118883848ea956072df1fe881e 100644 (file)
@@ -23,7 +23,7 @@ python_glue_OBJ_FILES = $(pyscriptsrcdir)/pyglue.o
 
 $(python_glue_OBJ_FILES): CFLAGS+=-I$(ldbsrcdir)
 
-_PY_FILES = $(shell find $(pyscriptsrcdir)/samba ../lib/subunit/python -name "*.py")
+_PY_FILES = $(shell find $(pyscriptsrcdir)/samba ../lib/subunit/python -type f -name "*.py")
 
 $(eval $(foreach pyfile, $(_PY_FILES),$(call python_py_module_template,$(patsubst $(pyscriptsrcdir)/%,%,$(subst ../lib/subunit/python,,$(pyfile))),$(pyfile))))