- @msg="building dynamic backends..."; \
- for i in back-*; do \
- if test -d $$i -a -f $$i/Makefile ; then \
- grep '^BUILD_MOD[ ]*=[ ]*mod[ ]*$$' $$i/Makefile \
- > /dev/null 2>&1; \
- if test $$? = 0; then \
- if test -n "$$msg"; then \
- echo ""; echo "$$msg"; \
- msg=""; \
- fi; \
- echo ""; echo " cd $$i; $(MAKE) $(MFLAGS) all"; \
+ @if test -n "$(SLAPD_DYNAMIC_BACKENDS)"; then \
+ echo "building dynamic backends..."; \
+ for i in XX $(SLAPD_DYNAMIC_BACKENDS); do \
+ if test $$i != XX; then \
+ echo " "; echo " cd $$i; $(MAKE) $(MFLAGS) all"; \