aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormerakor <cem@ckyln.com>2020-09-05 09:56:12 +0000
committermerakor <cem@ckyln.com>2020-09-05 09:56:12 +0000
commitc561bde028d35fee7911ed6857d3a65cfa4b5088 (patch)
tree0039aa16fe639b78defce5d908f891eec554d59f
parent46280ce5cd323a5374d69da281b2c138baeaccfc (diff)
downloadcpt-c561bde028d35fee7911ed6857d3a65cfa4b5088.tar.gz
Makefile: add tests
FossilOrigin-Name: 3523397385ce9810fdbae3447bc0794943b27019581bb5126cd5452608322adf
-rw-r--r--Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index e3cebcf..64b914d 100644
--- a/Makefile
+++ b/Makefile
@@ -13,6 +13,12 @@ all: ${BIN}
clean:
rm -f ${BIN} ${OBJ}
+test: ${BIN}
+ bin/cpt-stat bin
+ bin/cpt-stat Makefile
+ bin/cpt-readlink /bin/sh
+ shellcheck -P src -x -f gcc src/* contrib/*
+
install-bin: ${BIN}
for bin in ${BIN}; do \
install -Dm755 $${bin} ${DESTDIR}${BINDIR}/$${bin##*/}; done