mirror of
https://github.com/CloverHackyColor/CloverBootloader.git
synced 2024-12-23 16:17:40 +01:00
7c0aa811ec
Signed-off-by: Sergey Isakov <isakov-sl@bk.ru>
32 lines
944 B
Makefile
32 lines
944 B
Makefile
|
|
XCODE_VERSION_GE_4 := $(shell expr `xcodebuild -version | sed -nE 's/^Xcode ([0-9]+).*/\1/p'` \>= 4)
|
|
XCODE_VERSION_GE_10 := $(shell expr `xcodebuild -version | sed -nE 's/^Xcode ([0-9]+).*/\1/p'` \>= 10)
|
|
|
|
XCODEBUILD_OPTIONS=-project 'CloverPrefpane.xcodeproj' CONFIGURATION_BUILD_DIR=$(CURDIR)/build DEPLOYMENT_LOCATION=NO
|
|
|
|
ifeq "$(XCODE_VERSION_GE_10)" "1"
|
|
XCODEBUILD_OPTIONS += ARCHS=x86_64 VALID_ARCHS=x86_64 ONLY_ACTIVE_ARCH=YES
|
|
endif
|
|
|
|
ifeq "$(XCODE_VERSION_GE_4)" "1"
|
|
XCODEBUILD_OPTIONS += -scheme 'Clover'
|
|
# BUILD_ACTION=archive
|
|
else
|
|
XCODEBUILD_OPTIONS += -configuration 'Release'
|
|
endif
|
|
|
|
CloverPrefpane:
|
|
@echo "Building CloverPrefpane preference..."
|
|
@/usr/bin/xcodebuild $(XCODEBUILD_OPTIONS) $(BUILD_ACTION) >/dev/null
|
|
@echo [XCODE] $(PROGRAMS)
|
|
|
|
install:
|
|
@$(CURDIR)/install.sh
|
|
|
|
clean:
|
|
@/usr/bin/xcodebuild $(XCODEBUILD_OPTIONS) clean >/dev/null
|
|
@rm -rf build *~
|
|
@echo [CLEAN] $(PROGRAMS)
|
|
|
|
.PHONY: CloverPrefpane install clean
|