dir.mk 1.32 KB
Newer Older
1
2
3
## Copyright 1998,1999 The OpenLDAP Foundation
## COPYING RESTRICTIONS APPLY.  See COPYRIGHT File in top level directory
## of this package for details.
Kurt Zeilenga's avatar
Kurt Zeilenga committed
4
5
6
7
8
9
##---------------------------------------------------------------------------
##
## Makes subdirectories
##


10
all-common: FORCE
Kurt Zeilenga's avatar
Kurt Zeilenga committed
11
12
13
14
15
16
17
	@echo "Making all in `$(PWD)`"
	@for i in $(SUBDIRS) $(ALLDIRS); do 		\
		echo "  Entering subdirectory $$i";		\
		( cd $$i; $(MAKE) $(MFLAGS) all );		\
		echo " ";								\
	done

18
install-common: FORCE
Kurt Zeilenga's avatar
Kurt Zeilenga committed
19
20
21
22
23
24
25
	@echo "Making install in `$(PWD)`"
	@for i in $(SUBDIRS) $(INSTALLDIRS); do 	\
		echo "  Entering subdirectory $$i";		\
		( cd $$i; $(MAKE) $(MFLAGS) install );	\
		echo " ";								\
	done

26
clean-common: FORCE
Kurt Zeilenga's avatar
Kurt Zeilenga committed
27
28
29
30
31
32
33
	@echo "Making clean in `$(PWD)`"
	@for i in $(SUBDIRS) $(CLEANDIRS); do		\
		echo "  Entering subdirectory $$i";		\
		( cd $$i; $(MAKE) $(MFLAGS) clean );	\
		echo " ";								\
	done

34
veryclean-common: FORCE
Kurt Zeilenga's avatar
Kurt Zeilenga committed
35
36
37
38
39
40
41
	@echo "Making veryclean in `$(PWD)`"
	@for i in $(SUBDIRS) $(CLEANDIRS); do		\
		echo "  Entering subdirectory $$i";		\
		( cd $$i; $(MAKE) $(MFLAGS) veryclean );	\
		echo " ";								\
	done

42
depend-common: FORCE
Kurt Zeilenga's avatar
Kurt Zeilenga committed
43
44
45
46
47
48
49
50
	@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