.PHONY: ub.build ub.combine ub.clean

ub.build: ub.build.serial

ub.build.serial:
	@$(UB.BUILD.SERIAL)

ub.build.parallel:
	@set -e; \
	for xcconfig in $(UB.xcconfigs); do \
	    $(call UB.BUILD.PARALLEL,$$xcconfig) & \
	    children="$$children $$!"; \
	    echo "pid $$!: $(call UB.BUILD.PARALLEL,$$xcconfig)"; \
	done; \
	echo "waiting for background jobs to complete:$$children"; \
	wait

ub.combine:
	$(call UB.COMBINE,HandBrake.app/Contents/MacOS/HandBrake)

#ub.clean:
#	$(RM.exe) -fr $(foreach n,$(UB.archs.other),ub.$n)
