diff --git a/.gitignore b/.gitignore index 3350f26..42d62d2 100644 --- a/.gitignore +++ b/.gitignore @@ -51,54 +51,3 @@ modules.order Module.symvers Mkfile.old dkms.conf - -## AUTOTOOLS -# http://www.gnu.org/software/automake - -Makefile.in -/ar-lib -/mdate-sh -/py-compile -/test-driver -/ylwrap - -# http://www.gnu.org/software/autoconf - -autom4te.cache -/autoscan.log -/autoscan-*.log -/aclocal.m4 -/compile -/config.guess -/config.h.in -/config.log -/config.status -/config.sub -/configure -/configure.scan -/depcomp -/install-sh -/missing -/stamp-h1 - -# https://www.gnu.org/software/libtool/ - -/ltmain.sh - -# http://www.gnu.org/software/texinfo - -/texinfo.tex - -# http://www.gnu.org/software/m4/ - -m4/libtool.m4 -m4/ltoptions.m4 -m4/ltsugar.m4 -m4/ltversion.m4 -m4/lt~obsolete.m4 - -# Generated Makefile -# (meta build system like autotools, -# can automatically generate from config.status script -# (which is called by configure script)) -Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..bbd7287 --- /dev/null +++ b/Makefile @@ -0,0 +1,13 @@ +CC= cc +CFLAGS= -O +RM= rm -f +SHELL= /bin/sh + +all: sendwol + +sendwol: sendwol.c + $(CC) $(CFLAGS) -o sendwol sendwol.c + +.PHONY: clean +clean: + $(RM) sendwol diff --git a/README.md b/README.md index f2ebb9d..f7e7264 100644 --- a/README.md +++ b/README.md @@ -17,47 +17,9 @@ Multicast to all link-local nodes on IPv4: More details, refer the man page. ```console -% man ./sendwol.1 # instantly -% man sendwol # after installation +% man ./sendwol.1 ``` - -## Installation - -1. Download the tarball from [releases page][]. - -2. Extract them. - ```console - % tar xvf sendwol-*.**.tar.gz - ``` - -3. Change the working directory. - ```console - % cd sendwol-*/. - ``` - -4. Generate `Makefile`. - ```console - % ./configure - ``` - -5. Build the binary. - ```console - % make - ``` - -6. Install them. - ```console - % make install - ``` - -## Uninstallation - -```console -% make uninstall -``` - - ## License The 2-Clause BSD License