diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..a6f6c14 --- /dev/null +++ b/Makefile @@ -0,0 +1,18 @@ +SRC_FILE := ticktick.sh +BASH_PATH := $(shell which bash) +INSTALL_PATH := $(shell dirname $(BASH_PATH)) + +default: help + +help: + @echo + @echo 'make test - Run the TickTick test suite' + @echo 'make install - Install ticktick.sh (next to bash)' + @echo + +test: + (cd tests; ./runall.sh) + +install: + cp $(SRC_FILE) $(INSTALL_PATH) + chmod +x $(INSTALL_PATH)/$(SRC_FILE)