]> git.sur5r.net Git - openldap/blobdiff - build/dir.mk
Add ManageDSAit support to back-dnssrv
[openldap] / build / dir.mk
index 3f1abbd0735b7e80c743ab63b5e013c04bfe4766..855435e58a95bb683e0cf3d29b746513a22e8663 100644 (file)
@@ -1,4 +1,5 @@
-## Copyright 1998,1999 The OpenLDAP Foundation
+# $OpenLDAP$
+## Copyright 1998-2000 The OpenLDAP Foundation
 ## COPYING RESTRICTIONS APPLY.  See COPYRIGHT File in top level directory
 ## of this package for details.
 ##---------------------------------------------------------------------------
@@ -6,12 +7,45 @@
 ## Makes subdirectories
 ##
 
-all-common install-common clean-common veryclean-common depend-common: FORCE
-       @T=`echo $@ | cut -d- -f1`; echo "Making $$T in `$(PWD)`"; \
-        $(MAKE) $(MFLAGS) $(SUBDIRS) TARG=$$T
 
-$(SUBDIRS): FORCE
-       @echo "  Entering subdirectory $@"; cd $@; $(MAKE) $(MFLAGS) $(TARG); \
-       echo ""
+all-common: FORCE
+       @echo "Making all in `$(PWD)`"
+       @for i in $(SUBDIRS) $(ALLDIRS); do             \
+               echo "  Entering subdirectory $$i";             \
+               ( cd $$i; $(MAKE) $(MFLAGS) all );              \
+               echo " ";                                                               \
+       done
+
+install-common: FORCE
+       @echo "Making install in `$(PWD)`"
+       @for i in $(SUBDIRS) $(INSTALLDIRS); do         \
+               echo "  Entering subdirectory $$i";             \
+               ( cd $$i; $(MAKE) $(MFLAGS) install );  \
+               echo " ";                                                               \
+       done
+
+clean-common: FORCE
+       @echo "Making clean in `$(PWD)`"
+       @for i in $(SUBDIRS) $(CLEANDIRS); do           \
+               echo "  Entering subdirectory $$i";             \
+               ( cd $$i; $(MAKE) $(MFLAGS) clean );    \
+               echo " ";                                                               \
+       done
+
+veryclean-common: FORCE
+       @echo "Making veryclean in `$(PWD)`"
+       @for i in $(SUBDIRS) $(CLEANDIRS); do           \
+               echo "  Entering subdirectory $$i";             \
+               ( cd $$i; $(MAKE) $(MFLAGS) veryclean );        \
+               echo " ";                                                               \
+       done
+
+depend-common: FORCE
+       @echo "Making depend in `$(PWD)`"
+       @for i in $(SUBDIRS) $(DEPENDDIRS); do          \
+               echo "  Entering subdirectory $$i";             \
+               ( cd $$i; $(MAKE) $(MFLAGS) depend );   \
+               echo " ";                                                               \
+       done
 
 Makefile: $(top_srcdir)/build/dir.mk