-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
83 lines (70 loc) · 2.16 KB
/
Makefile
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
71
72
73
74
75
76
77
78
79
80
81
82
83
# PPP top-level Makefile for Linux.
DESTDIR = $(INSTROOT)
BINDIR = $(DESTDIR)/sbin
INCDIR = $(DESTDIR)/usr/include
MANDIR = $(DESTDIR)/usr/share/man
DOCDIR = $(DESTDIR)/usr/share/doc/ppp
ETCDIR = $(INSTROOT)/etc/ppp
# uid 0 = root
all:
cd chat; $(MAKE) $(MFLAGS) all
cd pppd/plugins; $(MAKE) $(MFLAGS) all
cd pppd; $(MAKE) $(MFLAGS) all
cd pppstats; $(MAKE) $(MFLAGS) all
cd pppdump; $(MAKE) $(MFLAGS) all
install: $(BINDIR) $(DOCDIR) $(MANDIR)/man8 install-progs install-devel install-etcppp
$(INSTALL) -c -m 755 scripts/pon $(BINDIR)/.
$(INSTALL) -c -m 755 scripts/poff $(BINDIR)/.
$(INSTALL) -c -m 755 scripts/plog $(BINDIR)/.
$(INSTALL) -c -m 755 scripts/ppp-off $(BINDIR)/.
$(INSTALL) -c -m 755 scripts/pallon $(BINDIR)/.
$(INSTALL) -c copyright $(DOCDIR)/.
mkdir -p $(DESTDIR)/etc/init.d
$(INSTALL) -c -m 755 scripts/vyatta-ppp $(DESTDIR)/etc/init.d
( \
cd $(DESTDIR)/usr/sbin; \
ln -s -f ../../sbin/pppd .; \
ln -s -f ../../sbin/poff .; \
ln -s -f ../../sbin/pon .; \
)
install-progs:
cd chat; $(MAKE) $(MFLAGS) install
cd pppd/plugins; $(MAKE) $(MFLAGS) install
cd pppd; $(MAKE) $(MFLAGS) install
cd pppstats; $(MAKE) $(MFLAGS) install
cd pppdump; $(MAKE) $(MFLAGS) install
install-etcppp: $(ETCDIR) $(ETCDIR)/options $(ETCDIR)/pap-secrets \
$(ETCDIR)/chap-secrets
cd etc.ppp; find . -depth | cpio -dump $(ETCDIR)/.
$(INSTALL) -c -m 644 etc.ppp/options $(ETCDIR)/.
find usr -depth | cpio -dump $(INSTROOT)/.
install-devel:
cd pppd; $(MAKE) $(MFLAGS) install-devel
$(ETCDIR)/options:
#$(INSTALL) -c -m 644 etc.ppp/options $@
$(ETCDIR)/pap-secrets:
#$(INSTALL) -c -m 600 etc.ppp/pap-secrets $@
$(ETCDIR)/chap-secrets:
#$(INSTALL) -c -m 600 etc.ppp/chap-secrets $@
$(BINDIR):
$(MANDIR)/man8:
$(ETCDIR):
$(DOCDIR):
echo MAKEDIR $@
$(INSTALL) -d -m 755 $@
clean:
rm -f `find . -name '*.[oas]' -print`
rm -f `find . -name 'core' -print`
rm -f `find . -name '*~' -print`
cd chat; $(MAKE) clean
cd pppd/plugins; $(MAKE) clean
cd pppd; $(MAKE) clean
cd pppstats; $(MAKE) clean
cd pppdump; $(MAKE) clean
dist-clean: clean
rm -f Makefile `find . -name Makefile -print`
#kernel:
# cd linux; ./kinstall.sh
# no tests yet, one day...
installcheck:
true