From 18cb18f6a7768335794ac35b2e3dcc4bbce41b68 Mon Sep 17 00:00:00 2001 From: Noah Metz Date: Sat, 8 Apr 2023 14:09:25 -0600 Subject: [PATCH] Added .gitignore and Makefile --- .gitignore | 17 +++++++++++++++++ Makefile | 13 +++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 .gitignore create mode 100644 Makefile 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}