X-Git-Url: https://git.ozlabs.org/?p=ppp.git;a=blobdiff_plain;f=svr4%2FMakefile.top;h=c9d7eb577b66051ea835fdab46a81edaa2721805;hp=39c413f1249f91b844d5ea04626b65f67f1e296d;hb=10ae3ff470541d4de8cfb802ae5ba0b6b952a92a;hpb=07d873d3a9173ded6a1304f5e234bae862a6d25a diff --git a/svr4/Makefile.top b/svr4/Makefile.top index 39c413f..c9d7eb5 100644 --- a/svr4/Makefile.top +++ b/svr4/Makefile.top @@ -1,8 +1,10 @@ # # ppp top level makefile for Solaris 2 # +# $Id: Makefile.top,v 1.4 1996/09/14 05:12:31 paulus Exp $ +# -BINDIR = /usr/local/etc +BINDIR = /usr/local/bin MANDIR = /usr/local/man ETCDIR = /etc/ppp @@ -11,24 +13,22 @@ INSTALL= /usr/sbin/install all: cd chat; $(MAKE) all cd pppd; $(MAKE) all -# cd pppstats; $(MAKE) all - cd sol2; $(MAKE) all + cd pppstats; $(MAKE) all + cd svr4; $(MAKE) all install: $(BINDIR) $(MANDIR)/man8 install-progs install-etcppp install-progs: cd chat; $(MAKE) BINDIR=$(BINDIR) MANDIR=$(MANDIR) install cd pppd; $(MAKE) BINDIR=$(BINDIR) MANDIR=$(MANDIR) install -# cd pppstats; $(MAKE) BINDIR=$(BINDIR) MANDIR=$(MANDIR) install - cd sol2; $(MAKE) BINDIR=$(BINDIR) install + cd pppstats; $(MAKE) BINDIR=$(BINDIR) MANDIR=$(MANDIR) install + cd svr4; $(MAKE) BINDIR=$(BINDIR) install install-etcppp: $(ETCDIR) $(ETCDIR)/options $(ETCDIR)/pap-secrets \ $(ETCDIR)/chap-secrets $(ETCDIR)/options: - if netstat -rn | grep default >/dev/null; then \ - cp etc.ppp/options $@; \ - else cp etc.ppp/options.leaf $@; fi + cp etc.ppp/options $@ chmod go-w $@ $(ETCDIR)/pap-secrets: $(INSTALL) -f $(ETCDIR) -m 600 etc.ppp/pap-secrets @@ -36,16 +36,16 @@ $(ETCDIR)/chap-secrets: $(INSTALL) -f $(ETCDIR) -m 600 etc.ppp/chap-secrets $(BINDIR): - $(INSTALL) -d -m 755 $@ + mkdir -m 755 -p $@ $(MANDIR)/man8: - $(INSTALL) -d -m 755 $@ + mkdir -m 755 -p $@ $(ETCDIR): - $(INSTALL) -d -m 755 $@ + mkdir -m 755 -p $@ clean: rm -f *~ cd chat; $(MAKE) clean cd pppd; $(MAKE) clean cd pppstats; $(MAKE) clean - cd sol2; $(MAKE) clean + cd svr4; $(MAKE) clean