12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- diff --git a/Makefile b/Makefile
- index bf67bc6..c845922 100644
- --- a/Makefile
- +++ b/Makefile
- @@ -26,6 +26,7 @@
- # set the base of the Installation
- # BASEDIR = /mnt
- BASEDIR ?= $(DESTDIR)
- +PREFIX ?= /usr
- BINDIR ?= /bin
- SBINDIR ?= /sbin
-
- @@ -206,19 +207,15 @@ mii-tool: $(NET_LIB) mii-tool.o
- $(CC) $(CFLAGS) $(LDFLAGS) -o $@ mii-tool.o $(NLIB) $(LDLIBS)
-
- installbin:
- - @echo
- - @echo "######################################################"
- - @echo "Notice: ifconfig and route are now installed into /bin"
- - @echo "######################################################"
- - @echo
- install -m 0755 -d ${BASEDIR}${SBINDIR}
- install -m 0755 -d ${BASEDIR}${BINDIR}
- - install -m 0755 ifconfig ${BASEDIR}${BINDIR}
- + install -m 0755 -d ${BASEDIR}${PREFIX}${SBINDIR}
- + install -m 0755 ifconfig ${BASEDIR}${SBINDIR}
- install -m 0755 nameif ${BASEDIR}${SBINDIR}
- install -m 0755 netstat ${BASEDIR}${BINDIR}
- - install -m 0755 route ${BASEDIR}${BINDIR}
- + install -m 0755 route ${BASEDIR}${SBINDIR}
- ifeq ($(HAVE_ARP_TOOLS),1)
- - install -m 0755 arp ${BASEDIR}${SBINDIR}
- + install -m 0755 arp ${BASEDIR}${PREFIX}${SBINDIR}
- install -m 0755 rarp ${BASEDIR}${SBINDIR}
- endif
- ifeq ($(HAVE_HOSTNAME_TOOLS),1)
- @@ -248,9 +245,9 @@ ifeq ($(HAVE_SERIAL_TOOLS),1)
- endif
-
- savebin:
- - @for i in ${BASEDIR}${SBINDIR}/arp ${BASEDIR}${SBINDIR}/ifconfig \
- + @for i in ${BASEDIR}${PREFIX}${BINDIR}/arp ${BASEDIR}${SBINDIR}/ifconfig \
- ${BASEDIR}${BINDIR}/netstat \
- - ${BASEDIR}${SBINDIR}/rarp ${BASEDIR}${SBINDIR}/route \
- + ${BASEDIR}${SBINDIR}/rarp ${BASEDIR}${BINDIR}/route \
- ${BASEDIR}${BINDIR}/hostname ${BASEDIR}${BINDIR}/ypdomainname \
- ${BASEDIR}${BINDIR}/dnsdomainname ${BASEDIR}${BINDIR}/nisdomainname \
- ${BASEDIR}${BINDIR}/domainname ; do \
|