2 ## Copyright 1998-2003 The OpenLDAP Foundation.
3 ## All rights reserved.
5 ## Redistribution and use in source and binary forms, with or without
6 ## modification, are permitted only as authorized by the OpenLDAP
9 ## A copy of this license is available in the file LICENSE in the
10 ## top-level directory of the distribution or, alternatively, at
11 ## <http://www.OpenLDAP.org/license.html>.
12 ##---------------------------------------------------------------------------
14 # Makes subdirectories
19 @echo "Making all in `$(PWD)`"
20 @for i in $(SUBDIRS) $(ALLDIRS); do \
21 echo " Entering subdirectory $$i"; \
22 ( cd $$i; $(MAKE) $(MFLAGS) all ); \
23 if test $$? != 0 ; then exit 1; fi ; \
28 @echo "Making install in `$(PWD)`"
29 @for i in $(SUBDIRS) $(INSTALLDIRS); do \
30 echo " Entering subdirectory $$i"; \
31 ( cd $$i; $(MAKE) $(MFLAGS) install ); \
32 if test $$? != 0 ; then exit 1; fi ; \
37 @echo "Making clean in `$(PWD)`"
38 @for i in $(SUBDIRS) $(CLEANDIRS); do \
39 echo " Entering subdirectory $$i"; \
40 ( cd $$i; $(MAKE) $(MFLAGS) clean ); \
41 if test $$? != 0 ; then exit 1; fi ; \
45 veryclean-common: FORCE
46 @echo "Making veryclean in `$(PWD)`"
47 @for i in $(SUBDIRS) $(CLEANDIRS); do \
48 echo " Entering subdirectory $$i"; \
49 ( cd $$i; $(MAKE) $(MFLAGS) veryclean ); \
50 if test $$? != 0 ; then exit 1; fi ; \
55 @echo "Making depend in `$(PWD)`"
56 @for i in $(SUBDIRS) $(DEPENDDIRS); do \
57 echo " Entering subdirectory $$i"; \
58 ( cd $$i; $(MAKE) $(MFLAGS) depend ); \
59 if test $$? != 0 ; then exit 1; fi ; \
63 Makefile: $(top_srcdir)/build/dir.mk