X-Git-Url: http://git.ozlabs.org/?p=ppp.git;a=blobdiff_plain;f=linux%2FMakefile.top;h=f63d45e58a78ab2e275c8dbffbac8469126ed8a4;hp=c2049404e3656fe74e57fe2603b70cce6e49e0d9;hb=70a8ad3dbd8af3b52d624550fc3343d1849c3f76;hpb=e5ad7e3dbf232955054ee90e54cebd6ee9533a85 diff --git a/linux/Makefile.top b/linux/Makefile.top index c204940..f63d45e 100644 --- a/linux/Makefile.top +++ b/linux/Makefile.top @@ -1,28 +1,36 @@ # PPP top-level Makefile for Linux. - -BINDIR = /usr/sbin -MANDIR = /usr/man -ETCDIR = /etc/ppp +DESTDIR = $(INSTROOT)@DESTDIR@ +BINDIR = $(DESTDIR)/sbin +INCDIR = $(DESTDIR)/include +MANDIR = $(DESTDIR)/share/man +ETCDIR = $(INSTROOT)@SYSCONF@/ppp # uid 0 = root -INSTALL= install -o 0 -g daemon +INSTALL= install 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) $(MANDIR)/man8 install-progs install-etcppp +install: $(BINDIR) $(MANDIR)/man8 install-progs install-devel install-progs: - cd chat; $(MAKE) BINDIR=$(BINDIR) MANDIR=$(MANDIR) $(MFLAGS) install - cd pppd; $(MAKE) BINDIR=$(BINDIR) MANDIR=$(MANDIR) $(MFLAGS) install - cd pppstats; $(MAKE) BINDIR=$(BINDIR) MANDIR=$(MANDIR) $(MFLAGS) install + 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 +install-devel: + cd pppd; $(MAKE) $(MFLAGS) install-devel + $(ETCDIR)/options: $(INSTALL) -c -m 644 etc.ppp/options $@ $(ETCDIR)/pap-secrets: @@ -38,15 +46,21 @@ $(ETCDIR): $(INSTALL) -d -m 755 $@ clean: - rm -f core `find . -name '*.[oas]' -print` - rm -f core `find . -name 'core' -print` - rm -f core `find . -name '*~' -print` + 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 +#kernel: +# cd linux; ./kinstall.sh + +# no tests yet, one day... +installcheck: + true