]> git.sur5r.net Git - openldap/blob - doc/Make-template
return to releng
[openldap] / doc / 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 doc 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 install:        FORCE
33         @echo "making install in `$(PWD)`"
34         @for i in *; do \
35             if [ -d $$i -a $$i != "RCS" ]; then \
36                 echo; echo "  cd $$i; $(MAKE) $(MFLAGS) install"; \
37                 ( cd $$i; $(MAKE) $(MFLAGS) install ); \
38             fi; \
39         done
40
41
42 clean:  FORCE
43         @echo "making clean in `$(PWD)`"
44         @for i in *; do \
45             if [ -d $$i -a $$i != "RCS" ]; then \
46                 echo; echo "  cd $$i; $(MAKE) $(MFLAGS) clean"; \
47                 ( cd $$i; $(MAKE) $(MFLAGS) clean ); \
48             fi; \
49         done
50
51
52 veryclean:      clean
53
54
55 depend: FORCE
56         @echo "making depend in `$(PWD)`"
57         @for i in *; do \
58             if [ -d $$i -a $$i != "RCS" ]; then \
59                 echo; echo "  cd $$i; $(MAKE) $(MFLAGS) depend"; \
60                 ( cd $$i; $(MAKE) $(MFLAGS) depend ); \
61             fi; \
62         done
63
64
65 lint:   FORCE
66         @echo "making lint in `$(PWD)`"
67         @for i in *; do \
68             if [ -d $$i -a $$i != "RCS" ]; then \
69                 echo; echo "  cd $$i; $(MAKE) $(MFLAGS) lint"; \
70                 ( cd $$i; $(MAKE) $(MFLAGS) lint ); \
71             fi; \
72         done
73
74
75 5lint:  FORCE
76         @echo "making 5lint in `$(PWD)`"
77         @for i in *; do \
78             if [ -d $$i -a $$i != "RCS" ]; then \
79                 echo; echo "  cd $$i; $(MAKE) $(MFLAGS) 5lint"; \
80                 ( cd $$i; $(MAKE) $(MFLAGS) 5lint ); \
81             fi; \
82         done
83
84
85 links:
86         @echo "making links in `$(PWD)`"; \
87         for i in .src/*; do \
88             if [ -d $$i -a $$i != ".src/RCS" ]; then \
89                 d=`basename $$i`; \
90                 ( $(MKDIR) $$d; cd $$d; $(LN) ../.src/$$d .src; \
91                   $(LN) ../.src/$$d/Make-template . ; \
92                   $(MAKE) $(MFLAGS) MKDIR="$(MKDIR)" LN="$(LN)" \
93                     -f Make-template links ) ; \
94             fi; \
95         done