]> granicus.if.org Git - linux-pam/blob - modules/Makefile
Initial revision
[linux-pam] / modules / Makefile
1 # $Id$
2 #
3 # Makefile
4 #
5 # This makefile controls the build process of shared and static PAM modules.
6 #
7 #
8
9 MODDIRS=$(shell /bin/ls -d pam_*)
10
11 # ////////////////////////////////////////////////////
12 # // You should not modify anything below this line //
13 # ////////////////////////////////////////////////////
14
15 dummy:
16         @echo   "*** This is not a top-level Makefile! ***"
17
18 # -----------------------------------------------------------
19
20 all:    
21         @echo modules for $(OS) are:
22         @ls -d $(MODDIRS) 2>/dev/null ; echo :--------
23         @echo
24 ifdef STATIC
25         rm -f ./_static_module_*
26 endif
27         @for i in $(MODDIRS) ; do \
28                 if [ -d $$i ]; then { \
29                    $(MAKE) -C $$i all ; \
30                    if [ $$? -ne 0 ]; then exit 1 ; fi ; \
31                 } elif [ -f ./.$$i ]; then { \
32                    cat ./.$$i ; \
33                 } fi ; \
34         done
35
36 download:
37         @./download-all
38
39 install:
40         for i in $(MODDIRS) ; do \
41                 if [ -d $$i ]; then { \
42                 $(MAKE) -C $$i install ; \
43                 if [ $$? -ne 0 ]; then exit 1 ; fi ; \
44                 } fi ; \
45         done
46
47 remove:
48         for i in $(MODDIRS) ; do \
49                 if [ -d $$i ]; then { \
50                         $(MAKE) -C $$i remove ; \
51                 } fi ; \
52         done
53
54 lclean:
55         rm -f _static_module_*
56
57 clean: lclean
58         for i in $(MODDIRS) ; do \
59                 if [ -d $$i ]; then { \
60                         $(MAKE) -C $$i clean ; \
61                 } fi ; \
62         done 
63
64 extraclean: lclean
65         for i in $(MODDIRS) ; do \
66                 if [ -d $$i ]; then \
67                         $(MAKE) -C $$i extraclean ; \
68                 fi ; \
69         done
70