From ae131a7172c0878c435c931c75bb36d052145852 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ingy=20d=C3=B6t=20Net?= Date: Sun, 1 Jul 2012 17:58:10 -0500 Subject: [PATCH] Added a Makefile for test and install by installing ticktick.sh in the PATH, you can have this usage: . `which ticktick.sh` --- Makefile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Makefile 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)