Create xfstests install target.
authorEric Sandeen <sandeen@sandeen.net>
Sat, 3 Jan 2009 04:28:37 +0000 (22:28 -0600)
committerEric Sandeen <sandeen@sandeen.net>
Sat, 3 Jan 2009 04:28:37 +0000 (22:28 -0600)
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Makefile
include/builddefs.in
ltp/Makefile
src/Makefile

index c025eef..b017580 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -62,7 +62,21 @@ $(DMAPI_MAKEFILE):
 aclocal.m4::
        aclocal --acdir=`pwd`/m4 --output=$@
 
-install install-dev install-lib:
+install: default $(addsuffix -install,$(SUBDIRS))
+       $(INSTALL) -m 755 -d $(PKG_LIB_DIR)
+       $(INSTALL) -m 755 check $(PKG_LIB_DIR)
+       $(INSTALL) -m 755 [0-9]?? $(PKG_LIB_DIR)
+       $(INSTALL) -m 755 run.* $(PKG_LIB_DIR)
+       $(INSTALL) -m 644 group $(PKG_LIB_DIR)
+       $(INSTALL) -m 644 randomize.awk $(PKG_LIB_DIR)
+       $(INSTALL) -m 644 [0-9]??.* $(PKG_LIB_DIR)
+       $(INSTALL) -m 644 common* $(PKG_LIB_DIR)
+
+# Nothing.
+install-dev install-lib:
+
+%-install:
+       $(MAKE) -C $* install
 
 realclean distclean: clean
        rm -f $(LDIRT) $(CONFIGURE)
index ae8c608..d855c89 100644 (file)
@@ -27,6 +27,10 @@ PKG_RELEASE     = @pkg_release@
 PKG_VERSION     = @pkg_version@
 PKG_PLATFORM    = @pkg_platform@
 PKG_DISTRIBUTION= @pkg_distribution@
+PKG_SBIN_DIR    = @sbindir@
+# A bit of a hack; by rights only state should probably go here
+# But for now ...
+PKG_LIB_DIR     = /var/lib/@pkg_name@
 
 CC              = @cc@
 AWK             = @awk@
index 9c0ba1e..bcdac84 100644 (file)
@@ -49,3 +49,8 @@ ifeq ($(HAVE_AIO), true)
 aio-stress: aio-stress.c
        $(LINKTEST) $(LIBAIO) $(LDLIBS)
 endif
+
+install:
+       $(INSTALL) -m 755 -d $(PKG_LIB_DIR)/ltp
+       $(INSTALL) -m 755 $(TARGETS) $(PKG_LIB_DIR)/ltp
+
index 4a3113a..ad4c204 100644 (file)
@@ -126,3 +126,9 @@ open_unlink: open_unlink.o $(LIBHANDLE)
        $(LINKTEST) $(LIBHANDLE) $(LDLIBS)
 
 endif
+
+install:
+       $(INSTALL) -m 755 -d $(PKG_LIB_DIR)/src
+       $(INSTALL) -m 755 $(TARGETS) $(PKG_LIB_DIR)/src
+       $(INSTALL) -m 755 fill2attr fill2fs fill2fs_check scaleread.sh $(PKG_LIB_DIR)/src
+       $(INSTALL) -m 644 dumpfile $(PKG_LIB_DIR)/src