summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2008-03-24 06:10:40 +0000
committerMike Frysinger <vapier@gentoo.org>2008-03-24 06:10:40 +0000
commit9ed5d28d157f95f665f95b0a4fa8b4028d16d1bf (patch)
treeef3056c3c240e7c54c8508922052bfed31440b6c
parent02e7e1b9884f3f835e8ffd1f5ce804df5fc6b17b (diff)
downloadopenrc-9ed5d28d157f95f665f95b0a4fa8b4028d16d1bf.tar.gz
openrc-9ed5d28d157f95f665f95b0a4fa8b4028d16d1bf.tar.bz2
openrc-9ed5d28d157f95f665f95b0a4fa8b4028d16d1bf.tar.xz
add check/test rules
-rw-r--r--man/Makefile2
-rw-r--r--mk/lib.mk2
-rw-r--r--mk/scripts.mk2
-rw-r--r--mk/subdir.mk2
-rw-r--r--runlevels/Makefile2
-rw-r--r--src/Makefile2
-rw-r--r--src/rc/Makefile2
-rw-r--r--src/test/Makefile6
8 files changed, 16 insertions, 4 deletions
diff --git a/man/Makefile b/man/Makefile
index b8f0e42..df86960 100644
--- a/man/Makefile
+++ b/man/Makefile
@@ -34,4 +34,6 @@ install:
${MAKE_LINKS} \
done
+check test::
+
clean:
diff --git a/mk/lib.mk b/mk/lib.mk
index fb50955..9c5cc22 100644
--- a/mk/lib.mk
+++ b/mk/lib.mk
@@ -47,6 +47,8 @@ install: all
${INSTALL} -d ${DESTDIR}${INCDIR}
for x in ${INCS}; do ${INSTALL} -m ${INCMODE} $$x ${DESTDIR}${INCDIR}; done
+check test::
+
clean:
rm -f ${OBJS} ${SOBJS} ${_LIBS} ${SHLIB_LINK} ${CLEANFILES}
diff --git a/mk/scripts.mk b/mk/scripts.mk
index 5404e95..3021c92 100644
--- a/mk/scripts.mk
+++ b/mk/scripts.mk
@@ -42,6 +42,8 @@ realinstall: ${BIN} ${CONF} ${CONF_APPEND}
install: all realinstall ${INSTALLAFTER}
+check test::
+
# A lot of scripts don't have anything to clean
# Also, some rm implentation require a file argument regardless of error
# so we ensure that it has a bogus argument
diff --git a/mk/subdir.mk b/mk/subdir.mk
index ca54176..fcb5cf2 100644
--- a/mk/subdir.mk
+++ b/mk/subdir.mk
@@ -36,6 +36,8 @@ clean:
realinstall:
${_SUBDIR}
install: realinstall ${INSTALLAFTER}
+check test::
+ ${_SUBDIR}
depend:
${_SUBDIR}
gitignore:
diff --git a/runlevels/Makefile b/runlevels/Makefile
index 34e92aa..38d9306 100644
--- a/runlevels/Makefile
+++ b/runlevels/Makefile
@@ -34,4 +34,6 @@ install:
ln -snf ${PREFIX}/etc/init.d/"$$x" ${DEFAULTDIR}/"$$x" || exit $$?; done \
fi
+check test::
+
clean:
diff --git a/src/Makefile b/src/Makefile
index 6cc6872..151bced 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -1,6 +1,6 @@
# Copyright 2007-2008 Roy Marples
-SUBDIR= libeinfo librc rc
+SUBDIR= test libeinfo librc rc
MK= ../mk
include ${MK}/subdir.mk
diff --git a/src/rc/Makefile b/src/rc/Makefile
index 2779a44..76e635d 100644
--- a/src/rc/Makefile
+++ b/src/rc/Makefile
@@ -71,5 +71,7 @@ install: all
${INSTALL} -m ${PAMMODE} start-stop-daemon.pam ${DESTDIR}${PAMDIR}/start-stop-daemon; \
fi
+check test::
+
links: rc
for l in ${ALL_LINKS}; do ln -sf rc $$l || exit $$? ; done
diff --git a/src/test/Makefile b/src/test/Makefile
index e1747c2..c3e879e 100644
--- a/src/test/Makefile
+++ b/src/test/Makefile
@@ -1,9 +1,9 @@
all:
-check:
+install:
+
+check test::
./symbols.sh
clean:
rm -f *.out
-
-.PHONY: all check clean