]> git.sur5r.net Git - openldap/blob - clients/Make-template
76a02d5a266c51bf459e86ae965c604e69bb394c
[openldap] / clients / Make-template
1 #-----------------------------------------------------------------------------
2 # Copyright (c) 1994 Regents of the University of Michigan.
3 # All rights reserved.
4 #
5 # Redistribution and use in source and binary forms are permitted
6 # provided that this notice is preserved and that due credit is given
7 # to the University of Michigan at Ann Arbor. The name of the University
8 # may not be used to endorse or promote products derived from this
9 # software without specific prior written permission. This software
10 # is provided ``as is'' without express or implied warranty.
11 #
12 #       LDAP clients Makefile
13 #
14 #-----------------------------------------------------------------------------
15
16 ############################################################################
17 #                                                                          #
18 # You should not have to edit anything below this point                    #
19 #                                                                          #
20 ############################################################################
21
22 all:    FORCE
23         @echo "making all in `$(PWD)`"
24         @for i in *; do \
25             if [ -d $$i -a $$i != "RCS" ]; then \
26                 echo; echo "  cd $$i; $(MAKE) $(MFLAGS) all"; \
27                 ( cd $$i; $(MAKE) $(MFLAGS) all ); \
28             fi; \
29         done
30
31
32 #
33 # rules to install the software
34 #
35
36 install:        FORCE
37         @echo "making install in `$(PWD)`"
38         @for i in *; do \
39             if [ -d $$i -a $$i != "RCS" ]; then \
40                 echo; echo "  cd $$i; $(MAKE) $(MFLAGS) install"; \
41                 ( cd $$i; $(MAKE) $(MFLAGS) install ); \
42             fi; \
43         done
44
45 #
46 # rules to make clean
47 #
48
49 clean:  FORCE
50         @echo "making clean in `$(PWD)`"
51         @for i in *; do \
52             if [ -d $$i -a $$i != "RCS" ]; then \
53                 echo; echo "  cd $$i; $(MAKE) $(MFLAGS) clean"; \
54                 ( cd $$i; $(MAKE) $(MFLAGS) clean ); \
55             fi; \
56         done
57
58 veryclean:      clean
59
60 #
61 # rules to make depend
62 #
63 #
64
65 depend: FORCE
66         @echo "making depend in `$(PWD)`"
67         @for i in *; do \
68             if [ -d $$i -a $$i != "RCS" ]; then \
69                 echo; echo "  cd $$i; $(MAKE) $(MFLAGS) depend"; \
70                 ( cd $$i; $(MAKE) $(MFLAGS) depend ); \
71             fi; \
72         done
73
74 links:
75         @echo "making links in `$(PWD)`"; \
76         for i in .src/*; do \
77             if [ -d $$i -a $$i != ".src/RCS" ]; then \
78                 d=`basename $$i`; \
79                 ( $(MKDIR) $$d; cd $$d; $(LN) ../.src/$$d .src; \
80                   $(LN) ../.src/$$d/Make-template . ; \
81                   $(MAKE) $(MFLAGS) MKDIR="$(MKDIR)" LN="$(LN)" \
82                     -f Make-template links ) ; \
83             fi; \
84         done