OSDN Git Service

改修工廠メニューを更新
[kcd/KCD.git] / Makefile
index 2ce6b8d..e229fe8 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -9,12 +9,9 @@ APP_NAME=$(BUILD_PATH)/$(DEPLOYMENT)/$(PRODUCT_NAME)
 SCHEME=KCD
 INFO_PLIST=KCD/KCD-Info.plist
 
-LOCALIZE_FILES=KCD/HMBroserWindowController.m KCD/HMServerDataStore.m KCD/HMKenzoDockStatus.m \
-KCD/HMMissionStatus.m KCD/HMNyukyoDockStatus.m KCD/HMCreateSlotItemCommand.m KCD/HMAppDelegate.m \
-KCD/HMStoreCreateSlotItemHistoryCommand.m KCD/HMDocksViewController.m KCD/HMSlotItemWindowController.m \
-KCD/HMBroserWindowController.m KCD/HMExternalBrowserWindowController.m KCD/HMLengTransformer.m \
-KCD/HMSokuTransformer.m KCD/HMGameViewController.m KCD/HMUpgradableShipsWindowController.m \
-KCD/HMScreenshotListWindowController.m KCD/HMHistoryWindowController.m
+XCODEBUILD=$(shell xcrun -f xcodebuild)
+
+LOCALIZE_FILES=KCD/LocalizedStrings.swift
 
 VER_CMD=grep -A1 'CFBundleShortVersionString' $(INFO_PLIST) | tail -1 | tr -d "'\t</string>" 
 VERSION=$(shell $(VER_CMD))
@@ -22,20 +19,24 @@ VERSION=$(shell $(VER_CMD))
 all: package
 
 Localizable: $(LOCALIZE_FILES)
-       genstrings -o KCD/ja.lproj $^
+       genstrings -s LocalizedString -o KCD/ja.lproj $^
        (cd KCD/ja.lproj; ${MAKE} $@;)
-#      genstrings -o KCD/en.lproj $^
+#      genstrings -s LocalizedString  -o KCD/en.lproj $^
 #      (cd KCD/en.lproj; ${MAKE} $@;)
+       genstrings -s LocalizedString  -o KCD/zh-Hant-TW.lproj $^
+       (cd KCD/zh-Hant-TW.lproj; ${MAKE} $@;)
+
 
 checkLocalizable:
 #      (cd KCD/en.lproj; ${MAKE} $@;)
        (cd KCD/ja.lproj; ${MAKE} $@;)
+       (cd KCD/zh-Hant-TW.lproj; ${MAKE} $@;)
 
 deploy:
        test -z "`git status --porcelain`"
 
-release: updateRevision
-       xcodebuild -derivedDataPath=build -configuration $(DEPLOYMENT)
+release: Carthage updateRevision
+       $(XCODEBUILD) -derivedDataPath=build -configuration $(DEPLOYMENT)
        $(MAKE) restoreInfoPlist
 
 package: deploy release
@@ -51,8 +52,12 @@ updateRevision:
 restoreInfoPlist:
        if [ -f $(INFO_PLIST).bak ] ; then mv -f $(INFO_PLIST).bak $(INFO_PLIST) ; fi
 
-build/Release/EquipmentEnhancementListBuilder: EquipmentEnhancementListBuilder/main.m KCD/HMEnhancementListItem.m
-       xcodebuild -derivedDataPath=build -configuration $(DEPLOYMENT) -target EquipmentEnhancementListBuilder
+build/Release/EquipmentEnhancementListBuilder: EquipmentEnhancementListBuilder/main.swift KCD/EnhancementListItem.swift
+       $(XCODEBUILD) -derivedDataPath=build -configuration $(DEPLOYMENT) -target EquipmentEnhancementListBuilder
 
 buildEquipmentEnhancementList: build/Release/EquipmentEnhancementListBuilder
        ./build/Release/EquipmentEnhancementListBuilder ./KCD
+
+Carthage: cartfile
+       DEVELOPER_DIR=$(shell xcode-select -p) carthage bootstrap
+       rm -rf Carthage/Build/*OS