~ubuntu-branches/ubuntu/breezy/pam/breezy

« back to all changes in this revision

Viewing changes to Linux-PAM/modules/Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Sam Hartman
  • Date: 2004-06-28 14:28:08 UTC
  • mfrom: (2.1.1 warty)
  • Revision ID: james.westby@ubuntu.com-20040628142808-adikk7vtfg3pzcjw
Tags: 0.76-22
* Add uploaders
* Document location of repository
* Fix options containing arguments in pam_unix, Closes: #254904

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# $Id: Makefile,v 1.1.1.2 2002/09/15 20:08:43 hartmans Exp $
 
2
#
 
3
# Makefile
 
4
#
 
5
# This makefile controls the build process of shared and static PAM modules.
 
6
#
 
7
#
 
8
 
 
9
include ../Make.Rules
 
10
 
 
11
MODDIRS=$(shell /bin/ls -d pam_*)
 
12
 
 
13
all:    
 
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 :--------
 
18
        @echo
 
19
ifdef STATIC
 
20
        rm -f ./_static_module_*
 
21
endif
 
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 { \
 
27
                   cat ./.$$i ; \
 
28
                } fi ; \
 
29
        done
 
30
 
 
31
download:
 
32
        @./download-all
 
33
 
 
34
install:
 
35
        for i in $(MODDIRS) ; do \
 
36
                if [ -d $$i ]; then { \
 
37
                $(MAKE) -C $$i install ; \
 
38
                if [ $$? -ne 0 ]; then exit 1 ; fi ; \
 
39
                } fi ; \
 
40
        done
 
41
 
 
42
remove:
 
43
        for i in $(MODDIRS) ; do \
 
44
                if [ -d $$i ]; then { \
 
45
                        $(MAKE) -C $$i remove ; \
 
46
                } fi ; \
 
47
        done
 
48
 
 
49
lclean:
 
50
        rm -f _static_module_*
 
51
 
 
52
clean: lclean
 
53
        for i in $(MODDIRS) ; do \
 
54
                if [ -d $$i ]; then { \
 
55
                        $(MAKE) -C $$i clean ; \
 
56
                } fi ; \
 
57
        done
 
58
        make -C pammodutil clean