From 5f802d2084c9a0a0cf3be5826b0df9336e7ac5ee Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Sun, 19 May 2024 23:18:05 +0400 Subject: [PATCH] Also added a check for build of a TARGET in a test target. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 5b55b4c..ad84977 100644 --- a/Makefile +++ b/Makefile @@ -24,6 +24,6 @@ uninstall: rm -f ${DESTDIR}${PREFIX}/share/licenses/${TARGET}/LICENSE rmdir ${DESTDIR}${PREFIX}/share/licenses/${TARGET} -test: +test: | ${TARGET} @echo -n "Does input \"3.68 120 30d\" gives 317.95? " @test "${shell ./kwh-cost 3.68 120 30d}" = "317.95" && { echo -e "\e[32mYES\e[0m"; } || { echo -e "\e[31mNO\e[0m"; } \ No newline at end of file