# include/depends.mk # define a dependency on a subtree # parameters: # 1: name # 2: directory # 3: directory dependency # 4: find options define rdep $(foreach file,$(shell find $(2) -type f -not -name .\* -and -not -path \*.svn\* $(4)), $(3): $(file) ) ifneq ($(shell find $(2) -type f -not -name .\* -and -not -path \*.svn\* $(4) | md5s),$(shell cat $(2)/.dep_files)) $(3): $(2)/.dep_files endif $(2)/.dep_files: FORCE @find $(2) -type f -not -name .\* -and -not -path \*.svn\* $(4) | md5s > $$@ endef ------ in include/package.mk $(call rdep,builddir,${CURDIR},$(STAMP_PREPARED),-and -not -path \*ipkg\*)