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 +```