1 # PPP top-level Makefile for Linux.
4 BINDIR = $(DESTDIR)/sbin
5 INCDIR = $(DESTDIR)/include
6 MANDIR = $(DESTDIR)/share/man
13 cd chat; $(MAKE) $(MFLAGS) all
14 cd pppd/plugins; $(MAKE) $(MFLAGS) all
15 cd pppd; $(MAKE) $(MFLAGS) all
16 cd pppstats; $(MAKE) $(MFLAGS) all
17 cd pppdump; $(MAKE) $(MFLAGS) all
19 install: $(BINDIR) $(MANDIR)/man8 install-progs install-devel
22 cd chat; $(MAKE) $(MFLAGS) install
23 cd pppd/plugins; $(MAKE) $(MFLAGS) install
24 cd pppd; $(MAKE) $(MFLAGS) install
25 cd pppstats; $(MAKE) $(MFLAGS) install
26 cd pppdump; $(MAKE) $(MFLAGS) install
28 install-etcppp: $(ETCDIR) $(ETCDIR)/options $(ETCDIR)/pap-secrets \
29 $(ETCDIR)/chap-secrets
32 cd pppd; $(MAKE) $(MFLAGS) install-devel
35 $(INSTALL) -c -m 644 etc.ppp/options $@
36 $(ETCDIR)/pap-secrets:
37 $(INSTALL) -c -m 600 etc.ppp/pap-secrets $@
38 $(ETCDIR)/chap-secrets:
39 $(INSTALL) -c -m 600 etc.ppp/chap-secrets $@
42 $(INSTALL) -d -m 755 $@
44 $(INSTALL) -d -m 755 $@
46 $(INSTALL) -d -m 755 $@
49 rm -f `find . -name '*.[oas]' -print`
50 rm -f `find . -name 'core' -print`
51 rm -f `find . -name '*~' -print`
52 cd chat; $(MAKE) clean
53 cd pppd/plugins; $(MAKE) clean
54 cd pppd; $(MAKE) clean
55 cd pppstats; $(MAKE) clean
56 cd pppdump; $(MAKE) clean
59 rm -f Makefile `find . -name Makefile -print`
62 # cd linux; ./kinstall.sh
64 # no tests yet, one day...