diff --git a/.gitignore b/.gitignore index 8f1b09b..a43eed4 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,3 @@ -gophernotes +build/ .ipynb_checkpoints Untitled*.ipynb diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..b841225 --- /dev/null +++ b/Makefile @@ -0,0 +1,16 @@ +BIN_DIR=build +BIN=$(BIN_DIR)/gophernotes +BUILD_OPTS=-v -buildmode exe -trimpath -o ${BIN} + +.PHONY: all +all: + [ -d ${BIN_DIR} ] || mkdir -p ${BIN_DIR} + go build ${BUILD_OPTS} + +.PHONY: clean +clean: + if [ -f ${BIN} ] ; then rm -v ${BIN} ; fi + +.PHONY: clean_notebooks +clean_notebooks: + rm -v Untitled*.ipynb