# -*- makefile -*- # # Contains the "depend" target so that we can generate dependencies # correctly. Subdirectory-spanning part stolen from an # automake-generated Makefile. # # This beast just got too complicated for a Makefile stub, so I turned # it into a standalone script. MUCH easier that way, so that we don't # have to fight Makefile quoting rules, at least. # # We must explicitly add -I$(top_builddir)/share/include, because # that's where will be. # depend: $(SOURCEFILES) @ $(SH) $(top_srcdir)/config/run_makedepend "$(srcdir)" \ "$(MAKEDEPEND)" "$(DEPEND_SUFFIX)" \ "$(CFLAGS) $(INCLUDES) $(LAM_DEPDIRS) $(EXTRA_DEPFLAGS) -I$(top_builddir)/share/include" \ $(SOURCEFILES) @set fnord $(MAKEFLAGS); amf=$$2; \ target=`echo $@ | sed s/-recursive//`; \ list='$(SUBDIRS)'; for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$target) \ || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \ done;