blob: 9b89ccfd4f35336c6fd6c777a68d38f69afe603d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
# $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
|