# $Id$ # # Makefile # # This makefile controls the build process of shared and static PAM modules. # # MODDIRS=$(shell /bin/ls -d pam_*) # //////////////////////////////////////////////////// # // You should not modify anything below this line // # //////////////////////////////////////////////////// dummy: @echo "*** This is not a top-level Makefile! ***" # ----------------------------------------------------------- all: @echo modules for $(OS) are: @ls -d $(MODDIRS) 2>/dev/null ; echo :-------- @echo ifdef STATIC rm -f ./_static_module_* endif @for i in $(MODDIRS) ; do \ if [ -d $$i ]; then { \ $(MAKE) -C $$i all ; \ if [ $$? -ne 0 ]; then exit 1 ; fi ; \ } elif [ -f ./.$$i ]; then { \ cat ./.$$i ; \ } fi ; \ done download: @./download-all install: for i in $(MODDIRS) ; do \ if [ -d $$i ]; then { \ $(MAKE) -C $$i install ; \ if [ $$? -ne 0 ]; then exit 1 ; fi ; \ } fi ; \ done remove: for i in $(MODDIRS) ; do \ if [ -d $$i ]; then { \ $(MAKE) -C $$i remove ; \ } fi ; \ done lclean: rm -f _static_module_* clean: lclean for i in $(MODDIRS) ; do \ if [ -d $$i ]; then { \ $(MAKE) -C $$i clean ; \ } fi ; \ done extraclean: lclean for i in $(MODDIRS) ; do \ if [ -d $$i ]; then \ $(MAKE) -C $$i extraclean ; \ fi ; \ done