summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/module.defs3
-rw-r--r--test/module.rules12
2 files changed, 15 insertions, 0 deletions
diff --git a/test/module.defs b/test/module.defs
index 3eda79509..a0ab7d000 100644
--- a/test/module.defs
+++ b/test/module.defs
@@ -14,6 +14,8 @@ TEST.libs = $(LIBHB.a) $(foreach n, \
ogg samplerate swscale theora vorbis vorbisenc x264 xvidcore, \
$(CONTRIB.build/)lib/lib$(n).a )
+TEST.install.exe = $(INSTALL.prefix/)bin/$(notdir $(TEST.exe))
+
## add libs from optional modules
ifeq (1,$(BZIP2.enabled))
TEST.libs += $(CONTRIB.build/)lib/libbz2.a
@@ -26,6 +28,7 @@ endif
TEST.out += $(TEST.c.o)
TEST.out += $(TEST.exe)
+TEST.out += $(TEST.install.exe)
BUILD.out += $(TEST.out)
diff --git a/test/module.rules b/test/module.rules
index 34004b97f..2a18db9b4 100644
--- a/test/module.rules
+++ b/test/module.rules
@@ -18,3 +18,15 @@ test.clean:
build: test.build
clean: test.clean
+
+###############################################################################
+
+## avoid installing CLI on darwin
+ifneq ($(BUILD.system),darwin)
+
+install: test.install
+
+test.install: | $(dir $(TEST.install.exe))
+ $(CP.exe) $(TEST.exe) $(TEST.install.exe)
+
+endif