a70847bc6ba96880ae1737bae20ef8645264ae94 hiram Thu Apr 4 11:26:58 2013 -0700 cleaning up test target and adding that generic target in userApp.mk refs #9104 diff --git src/inc/userApp.mk src/inc/userApp.mk index 0e03e7e..b528d64 100644 --- src/inc/userApp.mk +++ src/inc/userApp.mk @@ -27,15 +27,20 @@ all ${A}: ${O} ${extraObjects} ${CC} ${COPT} -o ${DESTDIR}${BINDIR}/${A} ${objects} ${MYLIBS} ${L} -lm ${STRIP} ${DESTDIR}${BINDIR}/${A}${EXE} compile:: ${O} ${extraObjects} ${MYLIBS} ${CC} ${COPT} ${CFLAGS} -o ${A}${EXE} ${objects} ${MYLIBS} ${L} -lm install:: compile rm -f ${DESTDIR}${BINDIR}/${A}${EXE} cp -p ${A}${EXE} ${DESTDIR}${BINDIR}/${A}${EXE} ${STRIP} ${A}${EXE} ${DESTDIR}${BINDIR}/${A}${EXE} rm -f ${O} ${A}${EXE} clean:: rm -f ${O} ${extraObjects} ${A}${EXE} + @if test -d tests -a -s tests/makefile; then cd tests && ${MAKE} clean; fi + +test:: + @if test -d tests -a -s tests/makefile; then (cd tests && ${MAKE} test); \ + else echo "# no tests directory in $(CURDIR)"; fi