Added .gitignore and Makefile

graph-rework
noah metz 2023-04-08 14:09:25 -06:00
parent ca71fd3061
commit 18cb18f6a7
2 changed files with 30 additions and 0 deletions

17
.gitignore vendored

@ -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
!*/

@ -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}