diff options
author | Jason Fesler <jfesler@guest.gigo.com> | 2015-02-17 12:28:49 -0800 |
---|---|---|
committer | Jason Fesler <jfesler@guest.gigo.com> | 2015-02-17 12:28:49 -0800 |
commit | b1e20d4b8a4e6904fc7d6d53e52f2c7c83fd38a4 (patch) | |
tree | 9820506a8d7630e81bfde8a08f730e60eca0db31 /Makefile | |
parent | cc77a17a4af235fbe7d85b06ade0bcd1e87effac (diff) | |
download | mtu1280d-b1e20d4b8a4e6904fc7d6d53e52f2c7c83fd38a4.tar.gz mtu1280d-b1e20d4b8a4e6904fc7d6d53e52f2c7c83fd38a4.zip |
A bit of nice help.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -1,4 +1,12 @@ +help: + @echo "make mtu1280d - just build binary" + @echo "make install - installs to /usr/sbin/mtu1280d" + @echo "make upstart - installs, including /etc/init/ script" + @echo "make init.d - installs, including /etc/init.d/ and runs chkconfig" + @test -d /etc/init && echo "we recommend make upstart (we found /etc/init)" || true + @test ! -d /etc/init && echo "we recommend make init.d (we did not find /etc/init)" || true + mtu1280d: mtu1280d.c gcc -o mtu1280d mtu1280d.c -lnetfilter_queue @@ -6,6 +14,8 @@ install: mtu1280d /usr/bin/install -c mtu1280d /usr/sbin/ upstart: install + @echo Checking to see if your system uses upstart + test -d /etc/init/ /usr/bin/install -c upstart/mtu1280d /etc/init/ init.d: install @@ -16,3 +26,4 @@ remove: @echo "Removing any previous installation (including startup scripts) of mtu1280d" rm -fr /usr/sbin/mtu1280d /etc/init/mtu1280d /etc/init.d/mtu1280d update-rc.d mtu1280d remove + |