Also added a check for build of a TARGET in a test target.
This commit is contained in:
parent
3611b94ab6
commit
5f802d2084
2
Makefile
2
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"; }
|
Loading…
Reference in New Issue
Block a user