aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CONTRIBUTING.md33
-rw-r--r--Makefile10
-rw-r--r--README.md6
3 files changed, 10 insertions, 39 deletions
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
deleted file mode 100644
index d0c4879..0000000
--- a/CONTRIBUTING.md
+++ /dev/null
@@ -1,33 +0,0 @@
-How to contribute
-=================
-
-We'd love to accept your patches and contributions to this project. There are
-just a few small guidelines you need to follow.
-
-
-Contributor License Agreement
------------------------------
-
-Contributions to this project must be accompanied by a Contributor License
-Agreement. You (or your employer) retain the copyright to your contribution;
-this simply gives us permission to use and redistribute your contributions as
-part of the project. Head over to <https://cla.developers.google.com/> to see
-your current agreements on file or to sign a new one.
-
-You generally only need to submit a CLA once, so if you've already submitted one
-(even if it was for a different project), you probably don't need to do it
-again.
-
-
-Submitting code
----------------
-
-Submit patches either via a GitHub pull request or by sending mail to
-bbaren@google.com.
-
-
-Community Guidelines
---------------------
-
-This project follows
-[Google's Open Source Community Guidelines](https://opensource.google.com/conduct/).
diff --git a/Makefile b/Makefile
index b768764..fbcce99 100644
--- a/Makefile
+++ b/Makefile
@@ -13,9 +13,19 @@
# limitations under the License.
CFLAGS = -Wall -O2
+prefix ?= /usr/local
+bindir ?= $(prefix)/bin
+mandir ?= $(prefix)/share/man
.DEFAULT_GOAL := walk
.PHONY: clean
clean:
$(RM) walk
+
+.PHONY: install
+install: sor sor.1 walk walk.1
+ mkdir -p "$(bindir)" "$(mandir)/man1"
+ install -c sor walk "$(bindir)"
+ gzip -9 <sor.1 >"$(mandir)/man1/sor.1.gz"
+ gzip -9 <walk.1 >"$(mandir)/man1/walk.1.gz"
diff --git a/README.md b/README.md
index fee7b76..d37cc9d 100644
--- a/README.md
+++ b/README.md
@@ -65,9 +65,3 @@ History
[Dan Cross]: http://pub.gajendra.net/about
[Plan 9 from Bell Labs]: https://web.archive.org/web/20170601064029/http://plan9.bell-labs.com/plan9/index.html
[original source]: https://web.archive.org/web/http://plan9.bell-labs.com/sources/contrib/cross/
-
-
-Disclaimer
-----------
-
-This is not an official Google product.