SCHEME=KCD
INFO_PLIST=KCD/KCD-Info.plist
-LOCALIZE_FILES=KCD/HMBroserWindowController.m KCD/HMCoreDataManager.m KCD/HMKenzoDockStatus.m \
-KCD/HMMissionStatus.m KCD/HMNyukyoDockStatus.m KCD/HMCreateSlotItemCommand.m KCD/HMAppDelegate.m
+LOCALIZE_FILES=KCD/HMBroserWindowController.m KCD/HMServerDataStore.m KCD/HMKenzoDockStatus.m \
+KCD/HMMissionStatus.m KCD/HMNyukyoDockStatus.m KCD/HMCreateSlotItemCommand.m KCD/HMAppDelegate.m \
+KCD/HMScreenshotWindowController.m KCD/HMStoreCreateSlotItemHistoryCommand.m \
+KCD/HMDocksViewController.m
VER_CMD=grep -A1 'CFBundleShortVersionString' $(INFO_PLIST) | tail -1 | tr -d "'\t</string>"
VERSION=$(shell $(VER_CMD))
# (cd KCD/en.lproj; ${MAKE} $@;)
(cd KCD/ja.lproj; ${MAKE} $@;)
+deploy:
+ test -z "`git status --porcelain`"
+
release: updateRevision
xcodebuild -derivedDataPath=build -configuration $(DEPLOYMENT)
- $(MAKE) restorInfoPlist
+ $(MAKE) restoreInfoPlist
-package: release
+package: deploy release
REV=`git show | head -1 | awk '{printf("%.7s\n", $$2)}'`; \
ditto -ck -rsrc --keepParent $(APP) $(APP_NAME)-$(VERSION)-$${REV}.zip
sed -e "s/%%%%REVISION%%%%/$${REV}/" $(INFO_PLIST) > $(INFO_PLIST).r ; \
mv -f $(INFO_PLIST).r $(INFO_PLIST) ; \
-restorInfoPlist:
+restoreInfoPlist:
if [ -f $(INFO_PLIST).bak ] ; then mv -f $(INFO_PLIST).bak $(INFO_PLIST) ; fi