add check/test rules

This commit is contained in:
Mike Frysinger 2008-03-24 06:10:40 +00:00
parent 02e7e1b988
commit 9ed5d28d15
8 changed files with 16 additions and 4 deletions

View File

@ -34,4 +34,6 @@ install:
${MAKE_LINKS} \ ${MAKE_LINKS} \
done done
check test::
clean: clean:

View File

@ -47,6 +47,8 @@ install: all
${INSTALL} -d ${DESTDIR}${INCDIR} ${INSTALL} -d ${DESTDIR}${INCDIR}
for x in ${INCS}; do ${INSTALL} -m ${INCMODE} $$x ${DESTDIR}${INCDIR}; done for x in ${INCS}; do ${INSTALL} -m ${INCMODE} $$x ${DESTDIR}${INCDIR}; done
check test::
clean: clean:
rm -f ${OBJS} ${SOBJS} ${_LIBS} ${SHLIB_LINK} ${CLEANFILES} rm -f ${OBJS} ${SOBJS} ${_LIBS} ${SHLIB_LINK} ${CLEANFILES}

View File

@ -42,6 +42,8 @@ realinstall: ${BIN} ${CONF} ${CONF_APPEND}
install: all realinstall ${INSTALLAFTER} install: all realinstall ${INSTALLAFTER}
check test::
# A lot of scripts don't have anything to clean # A lot of scripts don't have anything to clean
# Also, some rm implentation require a file argument regardless of error # Also, some rm implentation require a file argument regardless of error
# so we ensure that it has a bogus argument # so we ensure that it has a bogus argument

View File

@ -36,6 +36,8 @@ clean:
realinstall: realinstall:
${_SUBDIR} ${_SUBDIR}
install: realinstall ${INSTALLAFTER} install: realinstall ${INSTALLAFTER}
check test::
${_SUBDIR}
depend: depend:
${_SUBDIR} ${_SUBDIR}
gitignore: gitignore:

View File

@ -34,4 +34,6 @@ install:
ln -snf ${PREFIX}/etc/init.d/"$$x" ${DEFAULTDIR}/"$$x" || exit $$?; done \ ln -snf ${PREFIX}/etc/init.d/"$$x" ${DEFAULTDIR}/"$$x" || exit $$?; done \
fi fi
check test::
clean: clean:

View File

@ -1,6 +1,6 @@
# Copyright 2007-2008 Roy Marples # Copyright 2007-2008 Roy Marples
SUBDIR= libeinfo librc rc SUBDIR= test libeinfo librc rc
MK= ../mk MK= ../mk
include ${MK}/subdir.mk include ${MK}/subdir.mk

View File

@ -71,5 +71,7 @@ install: all
${INSTALL} -m ${PAMMODE} start-stop-daemon.pam ${DESTDIR}${PAMDIR}/start-stop-daemon; \ ${INSTALL} -m ${PAMMODE} start-stop-daemon.pam ${DESTDIR}${PAMDIR}/start-stop-daemon; \
fi fi
check test::
links: rc links: rc
for l in ${ALL_LINKS}; do ln -sf rc $$l || exit $$? ; done for l in ${ALL_LINKS}; do ln -sf rc $$l || exit $$? ; done

View File

@ -1,9 +1,9 @@
all: all:
check: install:
check test::
./symbols.sh ./symbols.sh
clean: clean:
rm -f *.out rm -f *.out
.PHONY: all check clean