summaryrefslogtreecommitdiffstats
path: root/macosx/module.rules
diff options
context:
space:
mode:
Diffstat (limited to 'macosx/module.rules')
-rw-r--r--macosx/module.rules40
1 files changed, 28 insertions, 12 deletions
diff --git a/macosx/module.rules b/macosx/module.rules
index 7d4d368fc..20011c03d 100644
--- a/macosx/module.rules
+++ b/macosx/module.rules
@@ -1,8 +1,36 @@
$(eval $(call import.MODULE.rules,MACOSX))
+build: macosx.build
+install: macosx.install
+uninstall: macosx.uninstall
+clean: macosx.clean
+xclean: macosx.xclean
+
+########################################
+# sync with ../test/module.rules #
+########################################
+test.install-strip: | $(dir $(TEST.install.exe))
+ $(CP.exe) $(TEST.exe) $(TEST.install.exe)
+ $(STRIP.exe) $(TEST.install.exe)
+
+test.install: | $(dir $(TEST.install.exe))
+ $(CP.exe) $(TEST.exe) $(TEST.install.exe)
+
+test.uninstall:
+ $(RM.exe) -f $(TEST.install.exe)
+
+test.clean:
+ $(RM.exe) -f $(TEST.out)
+
+test.xclean: test.clean
+########################################
+
macosx.build: $(MACOSX.m4.out)
macosx.build: $(MACOSX.osl.filelist)
+macosx.install: test.install
+macosx.uninstall: test.uninstall
+
macosx.clean:
$(RM.exe) -f $(MACOSX.m4.out)
$(RM.exe) -f $(MACOSX.osl.filelist)
@@ -11,13 +39,6 @@ macosx.xclean:
$(RM.exe) -rf $(MACOSX.build/)
$(RM.exe) -rf $(MACOSX.xroot/)
-test.clean:
- $(RM.exe) -f $(MACOSX.xroot/)HandBrakeCLI
- $(RM.exe) -rf $(MACOSX.xroot/)HandBrakeCLI.dSYM
- $(RM.exe) -rf $(MACOSX.xroot/)HandBrakeCLI.build
-
-test.xclean: test.clean
-
$(MACOSX.m4.out): $(BUILD/)project/handbrake.m4
$(MACOSX.m4.out): | $(dir $(MACOSX.m4.out))
$(MACOSX.m4.out): $(MACOSX.build/)%: $(MACOSX.src/)%.m4
@@ -28,8 +49,3 @@ $(MACOSX.osl.filelist): $(BUILD/)GNUmakefile
@echo "creating $@"
@> $@
$(foreach i,$(foreach m,$(MODULES.NAMES),$($m.OSL.files)),$(call fn.PRINTLN,@echo $i >> $@))
-
-###############################################################################
-
-clean: macosx.clean
-build: macosx.build