2 ## This work is part of OpenLDAP Software <http://www.openldap.org/>.
4 ## Copyright 1998-2007 The OpenLDAP Foundation.
5 ## All rights reserved.
7 ## Redistribution and use in source and binary forms, with or without
8 ## modification, are permitted only as authorized by the OpenLDAP
11 ## A copy of this license is available in the file LICENSE in the
12 ## top-level directory of the distribution or, alternatively, at
13 ## <http://www.OpenLDAP.org/license.html>.
14 ##---------------------------------------------------------------------------
16 # Makes subdirectories
21 @echo "Making all in `$(PWD)`"
22 @for i in $(SUBDIRS) $(ALLDIRS); do \
23 echo " Entering subdirectory $$i"; \
24 ( cd $$i; $(MAKE) $(MFLAGS) all ); \
25 if test $$? != 0 ; then exit 1; fi ; \
30 @echo "Making install in `$(PWD)`"
31 @for i in $(SUBDIRS) $(INSTALLDIRS); do \
32 echo " Entering subdirectory $$i"; \
33 ( cd $$i; $(MAKE) $(MFLAGS) install ); \
34 if test $$? != 0 ; then exit 1; fi ; \
39 @echo "Making clean in `$(PWD)`"
40 @for i in $(SUBDIRS) $(CLEANDIRS); do \
41 echo " Entering subdirectory $$i"; \
42 ( cd $$i; $(MAKE) $(MFLAGS) clean ); \
43 if test $$? != 0 ; then exit 1; fi ; \
47 veryclean-common: FORCE
48 @echo "Making veryclean in `$(PWD)`"
49 @for i in $(SUBDIRS) $(CLEANDIRS); do \
50 echo " Entering subdirectory $$i"; \
51 ( cd $$i; $(MAKE) $(MFLAGS) veryclean ); \
52 if test $$? != 0 ; then exit 1; fi ; \
57 @echo "Making depend in `$(PWD)`"
58 @for i in $(SUBDIRS) $(DEPENDDIRS); do \
59 echo " Entering subdirectory $$i"; \
60 ( cd $$i; $(MAKE) $(MFLAGS) depend ); \
61 if test $$? != 0 ; then exit 1; fi ; \
65 Makefile: $(top_srcdir)/build/dir.mk