Commit 360b2f16 authored by Peter Pentchev's avatar Peter Pentchev

Add a simple Makefile.

parent 96593755
......@@ -4,6 +4,7 @@ Change log for ethstats, the network traffic statistics utility
- use Getopt::Std for command-line option processing
- add the -n interval option to specify the polling interval
- add the -i interface option to only poll a single interface
- add a simple Makefile
1.0 (unknown)
- released into the public domain by Drew Strieb
......
#!/usr/bin/make -f
SCRIPT= ethstats
SRC= ethstats.pl
INSTALL?= install
COPY?= -c
MKDIR?= mkdir -p
RM?= rm -f
LOCALBASE?= /usr/local
PREFIX?= ${LOCALBASE}
BINDIR?= ${PREFIX}/bin
MANDIR?= ${PREFIX}/man/man
BINOWN?= root
BINGRP?= root
BINMODE?= 755
MANOWN?= root
MANGRP?= root
MANMODE?= 644
INSTALL_EXEC?= ${INSTALL} ${COPY} -m ${BINMODE}
INSTALL_SCRIPT?= ${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE}
all: ${SCRIPT}
clean:
${RM} ${SCRIPT}
install: all
${MKDIR} ${DESTDIR}${BINDIR}
${INSTALL_SCRIPT} ${SCRIPT} ${DESTDIR}${BINDIR}/
test: all
@echo "No tests available for ethtool"
${SCRIPT}: ${SRC}
${INSTALL_EXEC} ${SRC} ${SCRIPT}
.PHONY: all clean install test
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment