diff options
author | Bradley Sepos <[email protected]> | 2016-12-22 00:42:42 -0500 |
---|---|---|
committer | Bradley Sepos <[email protected]> | 2016-12-22 02:55:27 -0500 |
commit | 6ccbfa43e09d1c8c22c4a1c2749a5bf4b6e017e2 (patch) | |
tree | f4f8e4e2714ea1cdebcc0f72cad352445ab7960d /test | |
parent | a827c12dd0639f1f3e49a540c1a594affa0d0ac9 (diff) |
build: Add install, install-strip, and uninstall targets for Darwin/Mac.
Also refactor test.* convenience targets for Darwin/Mac.
Configure parameter --prefix now sets HandBrakeCLI install directory [/usr/local] like on other systems.
New configure parameter --xcode-prefix sets HandBrake.app install directory [/Applications]. Not used on other systems.
Diffstat (limited to 'test')
-rw-r--r-- | test/module.rules | 45 |
1 files changed, 21 insertions, 24 deletions
diff --git a/test/module.rules b/test/module.rules index 5f41d4d2f..5dd638815 100644 --- a/test/module.rules +++ b/test/module.rules @@ -1,29 +1,17 @@ $(eval $(call import.MODULE.rules,TEST)) -test.build: $(TEST.exe) - -$(TEST.exe): | $(dir $(TEST.exe)) -$(TEST.exe): $(TEST.c.o) - $(call TEST.GCC.EXE++,$@,$^ $(TEST.libs)) - -$(TEST.c.o): $(LIBHB.a) -$(TEST.c.o): | $(dir $(TEST.c.o)) -$(TEST.c.o): $(BUILD/)%.o: $(SRC/)%.c - $(call TEST.GCC.C_O,$@,$<) - -test.clean: - $(RM.exe) -f $(TEST.out) - -############################################################################### - build: test.build +install: test.install +install-strip: test.install-strip +uninstall: test.uninstall clean: test.clean +xclean: test.xclean -############################################################################### - -## skip install/uninstall on darwin -ifneq ($(BUILD.system),darwin) +test.build: $(TEST.exe) +######################################## +# sync with ../macosx/module.rules # +######################################## test.install-strip: | $(dir $(TEST.install.exe)) $(CP.exe) $(TEST.exe) $(TEST.install.exe) $(STRIP.exe) $(TEST.install.exe) @@ -34,8 +22,17 @@ test.install: | $(dir $(TEST.install.exe)) test.uninstall: $(RM.exe) -f $(TEST.install.exe) -install-strip: test.install-strip -install: test.install -uninstall: test.uninstall +test.clean: + $(RM.exe) -f $(TEST.out) + +test.xclean: test.clean +######################################## -endif +$(TEST.exe): | $(dir $(TEST.exe)) +$(TEST.exe): $(TEST.c.o) + $(call TEST.GCC.EXE++,$@,$^ $(TEST.libs)) + +$(TEST.c.o): $(LIBHB.a) +$(TEST.c.o): | $(dir $(TEST.c.o)) +$(TEST.c.o): $(BUILD/)%.o: $(SRC/)%.c + $(call TEST.GCC.C_O,$@,$<) |