OSDN Git Service

dvdnav: fix crash when poorly masterd disc has no menus
[handbrake-jp/handbrake-jp-git.git] / test / module.rules
index 34004b9..c510689 100644 (file)
@@ -8,7 +8,7 @@ $(TEST.exe): $(TEST.c.o)
 
 $(TEST.c.o): $(LIBHB.a)
 $(TEST.c.o): | $(dir $(TEST.c.o))
-$(TEST.c.o): $(BUILD/)%.o: $(PROJECT/)%.c
+$(TEST.c.o): $(BUILD/)%.o: $(SRC/)%.c
        $(call TEST.GCC.C_O,$@,$<)
 
 test.clean:
@@ -18,3 +18,19 @@ test.clean:
 
 build: test.build
 clean: test.clean
+
+###############################################################################
+
+## skip install/uninstall on darwin
+ifneq ($(BUILD.system),darwin)
+
+test.install: | $(dir $(TEST.install.exe))
+       $(CP.exe) $(TEST.exe) $(TEST.install.exe)
+
+test.uninstall:
+       $(RM.exe) -f $(TEST.install.exe)
+
+install: test.install
+uninstall: test.uninstall
+
+endif