Develop and Download Open Source Software

Browse Subversion Repository

Annotation of /XspfManager/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 553 - (hide annotations) (download)
Mon Feb 7 14:03:18 2011 UTC (13 years, 2 months ago) by masakih
File size: 2079 byte(s)
[Mod] Makefileを見直し
1 masaki 268 # encoding=utf-8
2 masaki 262 PRODUCT_NAME=XspfManager
3     PRODUCT_EXTENSION=app
4     BUILD_PATH=./build
5     DEPLOYMENT=Release
6     APP_BUNDLE=$(PRODUCT_NAME).$(PRODUCT_EXTENSION)
7     APP=$(BUILD_PATH)/$(DEPLOYMENT)/$(APP_BUNDLE)
8     APP_NAME=$(BUILD_PATH)/$(DEPLOYMENT)/$(PRODUCT_NAME)
9     INFO_PLIST=Info.plist
10    
11     URL_CMD=LC_ALL=C svn info | awk '/Root/{print $$3}'
12     URL_XspfManager = $(shell $(URL_CMD))
13     HEAD = $(URL_XspfManager)/XspfManager
14     TAGS_DIR = $(URL_XspfManager)/tags
15    
16     VER_CMD=grep -A1 'CFBundleShortVersionString' $(INFO_PLIST) | tail -1 | tr -d "'\t</string>"
17     VERSION=$(shell $(VER_CMD))
18    
19     LocalizeFiles=XspfMLabelMenuView.m \
20     XspfMMainWindowController.m \
21 masaki 334 XspfMLibraryViewController.m \
22 masakih 385 XspfMCoverFlowViewController.m \
23 masakih 483 XspfManager.m \
24     XspfQTComponents/XspfQTMovieViewController.m \
25     XspfQTComponents/XspfQTDocument.m \
26 masakih 528 XspfQTComponents/XspfQTMovieWindowController.m \
27 masakih 540 XspfMCollectionItemView.m \
28     XspfMCollectionViewItem.m
29 masaki 262
30     all:
31     @echo do nothig.
32     @echo use target tagging
33    
34     tagging: update_svn
35     @echo "Tagging the $(VERSION) (x) release of XspfManager project."
36     @echo ""
37 masakih 553 @REV=`LC_ALL=C svnversion` ; \
38 masaki 262 echo svn copy $(HEAD) $(TAGS_DIR)/release-$(VERSION).$${REV}
39    
40     Localizable: ${LocalizeFiles}
41     genstrings -o English.lproj $^
42     (cd English.lproj; ${MAKE} $@;)
43     genstrings -o Japanese.lproj $^
44     (cd Japanese.lproj; ${MAKE} $@;)
45    
46     checkLocalizable:
47     (cd English.lproj; ${MAKE} $@;)
48     (cd Japanese.lproj; ${MAKE} $@;)
49    
50     release: updateRevision
51     xcodebuild -configuration $(DEPLOYMENT)
52     $(MAKE) restorInfoPlist
53    
54     package: release
55 masakih 553 REV=`LC_ALL=C svnversion`; \
56 masaki 262 ditto -ck -rsrc --keepParent $(APP) $(APP_NAME)-$(VERSION)-$${REV}.zip
57    
58     updateRevision: update_svn
59     if [ ! -f $(INFO_PLIST).bak ] ; then cp $(INFO_PLIST) $(INFO_PLIST).bak ; fi ; \
60 masakih 553 REV=`LC_ALL=C svnversion` ; \
61 masakih 483 sed -e "s/%%%%REVISION%%%%/$${REV}/" $(INFO_PLIST) > $(INFO_PLIST).r ; \
62 masaki 262 mv -f $(INFO_PLIST).r $(INFO_PLIST) ; \
63    
64     restorInfoPlist:
65     if [ -f $(INFO_PLIST).bak ] ; then mv -f $(INFO_PLIST).bak $(INFO_PLIST) ; fi
66    
67     update_svn:
68     svn up
69    
70     test:
71     xcodebuild -configuration $(DEPLOYMENT)
72     open ${APP}
73    

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26