]> git.sur5r.net Git - openldap/blob - build/dir.mk
minor cleanup
[openldap] / build / dir.mk
1 # $OpenLDAP$
2 ## Copyright 1998-2000 The OpenLDAP Foundation
3 ## COPYING RESTRICTIONS APPLY.  See COPYRIGHT File in top level directory
4 ## of this package for details.
5 ##---------------------------------------------------------------------------
6 ##
7 ## Makes subdirectories
8 ##
9
10
11 all-common: FORCE
12         @echo "Making all in `$(PWD)`"
13         @for i in $(SUBDIRS) $(ALLDIRS); do             \
14                 echo "  Entering subdirectory $$i";             \
15                 ( cd $$i; $(MAKE) $(MFLAGS) all );              \
16                 if test $$? != 0 ; then exit 1; fi ;    \
17                 echo " ";                                                               \
18         done
19
20 install-common: FORCE
21         @echo "Making install in `$(PWD)`"
22         @for i in $(SUBDIRS) $(INSTALLDIRS); do         \
23                 echo "  Entering subdirectory $$i";             \
24                 ( cd $$i; $(MAKE) $(MFLAGS) install );  \
25                 if test $$? != 0 ; then exit 1; fi ;    \
26                 echo " ";                                                               \
27         done
28
29 clean-common: FORCE
30         @echo "Making clean in `$(PWD)`"
31         @for i in $(SUBDIRS) $(CLEANDIRS); do           \
32                 echo "  Entering subdirectory $$i";             \
33                 ( cd $$i; $(MAKE) $(MFLAGS) clean );    \
34                 if test $$? != 0 ; then exit 1; fi ;    \
35                 echo " ";                                                               \
36         done
37
38 veryclean-common: FORCE
39         @echo "Making veryclean in `$(PWD)`"
40         @for i in $(SUBDIRS) $(CLEANDIRS); do           \
41                 echo "  Entering subdirectory $$i";             \
42                 ( cd $$i; $(MAKE) $(MFLAGS) veryclean );        \
43                 if test $$? != 0 ; then exit 1; fi ;    \
44                 echo " ";                                                               \
45         done
46
47 depend-common: FORCE
48         @echo "Making depend in `$(PWD)`"
49         @for i in $(SUBDIRS) $(DEPENDDIRS); do          \
50                 echo "  Entering subdirectory $$i";             \
51                 ( cd $$i; $(MAKE) $(MFLAGS) depend );   \
52                 if test $$? != 0 ; then exit 1; fi ;    \
53                 echo " ";                                                               \
54         done
55
56 Makefile: $(top_srcdir)/build/dir.mk