2 # ppp top level makefile
5 BINDIR = /usr/local/etc
6 MANDIR = /usr/local/man
9 INSTALL= install -o root -g daemon
14 cd pppstats; $(MAKE) all
15 cd sunos4; $(MAKE) all
17 install: $(BINDIR) $(MANDIR)/man8 install-progs install-etcppp
20 cd chat; $(MAKE) BINDIR=$(BINDIR) MANDIR=$(MANDIR) install
21 cd pppd; $(MAKE) BINDIR=$(BINDIR) MANDIR=$(MANDIR) install
22 cd pppstats; $(MAKE) BINDIR=$(BINDIR) MANDIR=$(MANDIR) install
23 cd sunos4; $(MAKE) BINDIR=$(BINDIR) install
25 install-etcppp: $(ETCDIR) $(ETCDIR)/options $(ETCDIR)/pap-secrets \
26 $(ETCDIR)/chap-secrets
29 if netstat -rn | grep default >/dev/null; then \
30 $(INSTALL) -c -m 644 etc.ppp/options $@; \
31 else $(INSTALL) -c -m 644 etc.ppp/options.leaf $@; fi
32 $(ETCDIR)/pap-secrets:
33 $(INSTALL) -c -m 600 etc.ppp/pap-secrets $@
34 $(ETCDIR)/chap-secrets:
35 $(INSTALL) -c -m 600 etc.ppp/chap-secrets $@
38 $(INSTALL) -d -m 755 $@
40 $(INSTALL) -d -m 755 $@
42 $(INSTALL) -d -m 755 $@
46 cd chat; $(MAKE) clean
47 cd pppd; $(MAKE) clean
48 cd pppstats; $(MAKE) clean
49 cd sunos4; $(MAKE) clean