diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2017-08-04 14:01:16 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2017-08-04 14:01:21 +1200 |
commit | 8bc38c441ce265e066d5ebad56fa5cb1f4718c7c (patch) | |
tree | 17b2751d7e89773204a79a11459c91fc5aeaaba3 | |
parent | Inline digest assignment (diff) | |
download | checkem-8bc38c441ce265e066d5ebad56fa5cb1f4718c7c.tar.gz checkem-8bc38c441ce265e066d5ebad56fa5cb1f4718c7c.zip |
Add a Makefile with an `install` target
-rw-r--r-- | Makefile | 9 | ||||
-rw-r--r-- | README.markdown | 8 |
2 files changed, 17 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..4ec8b20 --- /dev/null +++ b/Makefile @@ -0,0 +1,9 @@ +.POSIX: +.SUFFIXES: +.PHONY: all install clean +PREFIX = /usr/local +all: +install: + mkdir -p -- $(PREFIX)/bin + cp -p -- checkem $(PREFIX)/bin +clean: diff --git a/README.markdown b/README.markdown index 4a5cffb..15a0689 100644 --- a/README.markdown +++ b/README.markdown @@ -10,6 +10,14 @@ Requires at least one directory argument: $ checkem ~tom ~chantelle $ checkem /usr /usr/local +You can install it in `/usr/local/bin` with: + + # make install + +You can define a `PREFIX` to install it elsewhere: + + $ make install PREFIX="$HOME"/.local + License ------- |