diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a877f04 --- /dev/null +++ b/.gitignore @@ -0,0 +1,17 @@ +# Ignore everything +* + +# But not these files... +!/.gitignore + +!*.go +!go.sum +!go.mod + +!README.md +!LICENSE + +!Makefile + +# ...even if they are in subdirectories +!*/ diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..2e29734 --- /dev/null +++ b/Makefile @@ -0,0 +1,13 @@ +BINARY_DIR=./bin +BINARY_NAME=event_managear +BINARY_PATH=${BINARY_DIR}/${BINARY_NAME} + +build: + go build -o ${BINARY_PATH} event_manager + +clean: + rm -rf bin + go clean + +run: build + ${BINARY_PATH}