]> git.sur5r.net Git - openldap/blob - libraries/Make-template
Modified make system to support CVS instead of RCS
[openldap] / libraries / 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 libraries Makefile
13 #
14 #-----------------------------------------------------------------------------
15
16 ############################################################################
17 #                                                                          #
18 # You should not have to edit anything below this point                    #
19 #                                                                          #
20 ############################################################################
21
22 #
23 # rules to make the software
24 #
25
26 all:    FORCE
27         @echo "making all in `$(PWD)`"
28         @for i in *; do \
29             if [ -d $$i -a $$i != "CVS" ]; then \
30                 echo; echo "  cd $$i; $(MAKE) $(MFLAGS) all"; \
31                 ( cd $$i; $(MAKE) $(MFLAGS) all ); \
32             fi; \
33         done
34
35
36 #
37 # rules to install the software
38 #
39
40 install:        FORCE
41         @echo "making install in `$(PWD)`"
42         @for i in *; do \
43             if [ -d $$i -a $$i != "CVS" ]; then \
44                 echo; echo "  cd $$i; $(MAKE) $(MFLAGS) install"; \
45                 ( cd $$i; $(MAKE) $(MFLAGS) install ); \
46             fi; \
47         done
48
49 #
50 # rules to make clean
51 #
52 clean:  FORCE
53         @echo "making clean in `$(PWD)`"
54         @for i in *; do \
55             if [ -d $$i -a $$i != "CVS" ]; then \
56                 echo; echo "  cd $$i; $(MAKE) $(MFLAGS) clean"; \
57                 ( cd $$i; $(MAKE) $(MFLAGS) clean ); \
58             fi; \
59         done
60
61 veryclean:      clean
62
63 #
64 # rules to make depend
65 #
66 #
67 depend: FORCE
68         @echo "making depend in `$(PWD)`"
69         @for i in *; do \
70             if [ -d $$i -a $$i != "CVS" ]; then \
71                 echo; echo "  cd $$i; $(MAKE) $(MFLAGS) depend"; \
72                 ( cd $$i; $(MAKE) $(MFLAGS) depend ); \
73             fi; \
74         done
75
76 links:
77         @echo "making links in `$(PWD)`"; \
78         for i in .src/*; do \
79             if [ -d $$i -a $$i != ".src/CVS" ]; then \
80                 d=`basename $$i`; \
81                 ( $(MKDIR) $$d; cd $$d; $(LN) ../.src/$$d .src; \
82                   $(LN) ../.src/$$d/Make-template . ; \
83                   $(MAKE) $(MFLAGS) MKDIR="$(MKDIR)" LN="$(LN)" \
84                     -f Make-template links ) ; \
85             fi; \
86         done