Skip to content

Commit

Permalink
Added a Makefile for test and install
Browse files Browse the repository at this point in the history
by installing ticktick.sh in the PATH, you can have this usage:

    . `which ticktick.sh`
  • Loading branch information
ingydotnet committed Jul 1, 2012
1 parent 577e507 commit ae131a7
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit ae131a7

Please sign in to comment.