5 # This makefile controls the build process of shared and static PAM modules.
11 MODDIRS=$(shell /bin/ls -d pam_*/Makefile | cut -f1 -d/)
14 @echo building the static modutil library
15 make -C pammodutil all
16 @echo modules sources available are:
17 @ls -d $(MODDIRS) 2>/dev/null ; echo :--------
20 rm -f ./_static_module_*
22 @for i in $(MODDIRS) ; do \
23 if [ -d $$i ]; then { \
24 $(MAKE) -C $$i all ; \
25 if [ $$? -ne 0 ]; then exit 1 ; fi ; \
26 } elif [ -f ./.$$i ]; then { \
35 for i in $(MODDIRS) ; do \
36 if [ -d $$i ]; then { \
37 $(MAKE) -C $$i install ; \
38 if [ $$? -ne 0 ]; then exit 1 ; fi ; \
43 for i in $(MODDIRS) ; do \
44 if [ -d $$i ]; then { \
45 $(MAKE) -C $$i remove ; \
50 rm -f _static_module_*
53 for i in $(MODDIRS) ; do \
54 if [ -d $$i ]; then { \
55 $(MAKE) -C $$i clean ; \
58 make -C pammodutil clean