Implicitly run 'make rootfs' with 'make check'
authorDave Reisner <dreisner@archlinux.org>
Thu, 28 Jun 2012 15:16:36 +0000 (11:16 -0400)
committerDave Reisner <dreisner@archlinux.org>
Fri, 29 Jun 2012 16:58:06 +0000 (12:58 -0400)
Avoid the need for the user to run this manually after a run of the
testsuite by adding it.

Makefile.am

index a3a3698..a04a01f 100644 (file)
@@ -132,6 +132,7 @@ CREATE_ROOTFS = $(AM_V_GEN) ( $(RM) -rf $(ROOTFS) && \
 
 rootfs:
        $(CREATE_ROOTFS)
+.PHONY: rootfs
 
 $(ROOTFS): $(ROOTFS_PRISTINE)
        $(CREATE_ROOTFS)
@@ -142,6 +143,8 @@ TESTSUITE_OVERRIDE_LIBS = testsuite/uname.la testsuite/path.la \
 TESTSUITE_OVERRIDE_LIBS_LDFLAGS = avoid-version -module -shared -export-dynamic \
                                  -rpath /nowhere -ldl
 
+check-local: rootfs
+
 check_LTLIBRARIES = $(TESTSUITE_OVERRIDE_LIBS)
 
 testsuite_uname_la_LDFLAGS = $(TESTSUITE_OVERRIDE_LIBS_LDFLAGS)