From d826bad33926c9bc836dde738498d7b86d1c66e2 Mon Sep 17 00:00:00 2001 From: junikimm717 Date: Wed, 27 Oct 2021 21:58:05 -0400 Subject: [PATCH] LICENSE and README --- .gitignore | 2 ++ Makefile | 14 ++++++++++++++ README.md | 15 +++++++++++++++ 3 files changed, 31 insertions(+) create mode 100644 .gitignore create mode 100644 Makefile create mode 100644 README.md diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..227513c --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +.DS_Store +sendfile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..ed93b6d --- /dev/null +++ b/Makefile @@ -0,0 +1,14 @@ +PREFIX=/usr/local/bin + +sendfile: + go build + +install: sendfile + cp ./sendfile $(PREFIX)/sendfile + +.PHONY: clean +clean: + rm -rf ./sendfile + +uninstall: + rm -rf $(PREFIX)/sendfile diff --git a/README.md b/README.md new file mode 100644 index 0000000..19bb856 --- /dev/null +++ b/README.md @@ -0,0 +1,15 @@ +# Sendfile + +Dead-simple HTTP Server for sending one file. + +# Building the binary + +```bash +make +``` + +# installing + +```bash +make clean install +```