source: trunk/Release/Makefile @ 881

Revision 881, 1.9 KB checked in by astrange, 6 years ago (diff)

Might as well change the version.

Line 
1#Things to change for version upgrades:
2# Makefiles - Change this makefile, the VERSION declaration.
3# Plists - Modify all plists, they should all have version numbers.
4# Check the Perian.component target and PerianPane target.
5
6VERSION=1.1.1b1
7BETA=TRUE
8SRC_DIR=..
9BUILD_DIR=build
10RELEASE_NAME=Perian
11PERIAN_DIR=$(BUILD_DIR)/Perian
12ART_DIR=Artwork
13
14ifeq ($(BETA),TRUE)
15    BUILDSTYLE=Deployment+Debug
16else
17    BUILDSTYLE=Deployment
18endif
19
20
21ifeq ($(strip $(PRODUCT_DIR)),)
22        PERIAN_BUILD_DIR=$(SRC_DIR)/build/$(BUILDSTYLE)
23else
24        TARGET_BUILD_DIR=$(PRODUCT_DIR)/$(BUILDSTYLE)
25        PERIAN_BUILD_DIR=$(TARGET_BUILD_DIR)
26endif
27
28
29BUILDFLAGS="BUILDCONFIGURATION=$(BUILDSTYLE)"
30
31release: compile createfolder diskimage
32
33compile:
34        $(MAKE) $(BUILDFLAGS) -C $(SRC_DIR)
35
36createfolder:
37        @# clean build directory
38        rm -rf $(BUILD_DIR)
39        mkdir $(BUILD_DIR)
40
41        mkdir $(PERIAN_DIR)
42       
43        @# copy the app
44        cp -R $(PERIAN_BUILD_DIR)/Perian.prefPane $(PERIAN_DIR)
45#       strip -s $(SRC_DIR)/exportedSymbols -u $(PERIAN_DIR)/Perian.component/Contents/MacOS/Perian
46
47        @# copy the text files
48#       cp $(SRC_DIR)/Changes.txt $(PERIAN_DIR)
49#       cp $(SRC_DIR)/License.txt $(PERIAN_DIR)
50        cp $(SRC_DIR)/Release/Read\ Me.rtf $(PERIAN_DIR)
51        cp $(SRC_DIR)/Release/Changes.txt $(PERIAN_DIR)
52       
53        @# symlink /Library/QuickTime
54#       ln -s /Library/QuickTime $(PERIAN_DIR)/QuickTime
55
56        @# delete svn  and backup files
57        find $(BUILD_DIR) -name ".svn" -type d -exec rm -rf {} \; -prune
58        find $(BUILD_DIR) \( -name "*~" -or -name .DS_Store \) -type f -delete
59       
60        @# delete unneeded nib files for non-beta builds
61ifeq ($(BETA),FALSE)
62        find $(BUILD_DIR) \( -name classes.nib -or -name info.nib \) -type f -delete
63endif
64
65diskimage:
66        rm "$(BUILD_DIR)/$(RELEASE_NAME).dmg" || true
67        @# make Perian disk image
68        mkdir -p $(PERIAN_DIR)/.background
69#.background
70        cp $(ART_DIR)/periandmgbg.png $(PERIAN_DIR)/.background
71
72        ./make-diskimage.sh $(BUILD_DIR)/$(RELEASE_NAME)_$(VERSION).dmg $(PERIAN_DIR) "Perian $(VERSION)" dmg_perian.scpt
73       
74        @echo Build finished
Note: See TracBrowser for help on using the repository browser.