]> git.ozlabs.org Git - ppp.git/blobdiff - sunos4/Makefile.top
use Makedefs rather than passing lots of things on make command line
[ppp.git] / sunos4 / Makefile.top
index b63276c67fac34b41589056b2c3bd9a501db23a9..25c3e0f8206bf1dda8ba092409bf51f68a4c6305 100644 (file)
@@ -2,11 +2,7 @@
 # ppp top level makefile
 #
 
-BINDIR = /usr/local/etc
-MANDIR = /usr/local/man
-ETCDIR = /etc/ppp
-
-INSTALL= install -o root -g daemon
+include sunos4/Makedefs
 
 all:
        cd chat; $(MAKE) all
@@ -17,18 +13,16 @@ 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 sunos4; $(MAKE) BINDIR=$(BINDIR) install
+       cd chat; $(MAKE) install
+       cd pppd; $(MAKE) install
+       cd pppstats; $(MAKE) install
+       cd sunos4; $(MAKE) install
 
 install-etcppp: $(ETCDIR) $(ETCDIR)/options $(ETCDIR)/pap-secrets \
        $(ETCDIR)/chap-secrets
 
 $(ETCDIR)/options:
-       if netstat -rn | grep default >/dev/null; then \
-         $(INSTALL) -c -m 644 etc.ppp/options $@; \
-       else $(INSTALL) -c -m 644 etc.ppp/options.leaf $@; fi
+       $(INSTALL) -c -m 644 etc.ppp/options $@
 $(ETCDIR)/pap-secrets:
        $(INSTALL) -c -m 600 etc.ppp/pap-secrets $@
 $(ETCDIR)/chap-secrets: