-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
37 lines (32 loc) · 1.3 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
REQ_FILES=chrome.manifest install.rdf
REQ_DIRS=content defaults locale skin modules
XTRA_FILES=README COPYING
BUILD_DIR=build
VERSION=`version.sh 2> /dev/null || cat VERSION`
NAME=`bzr nick`
FNAME="$(NAME)-$(VERSION)"
make:
mkdir -p $(BUILD_DIR)/$(FNAME)
bzr export $(BUILD_DIR)/$(FNAME)-export
cd $(BUILD_DIR)/$(FNAME)-export && build_rdf.py $(VERSION)
cd $(BUILD_DIR)/$(FNAME)-export && cp -r $(REQ_FILES) $(REQ_DIRS) $(XTRA_FILES) ../$(FNAME)
echo $(VERSION) > $(BUILD_DIR)/$(FNAME)/VERSION
cd $(BUILD_DIR)/$(FNAME) && zip -r ../$(FNAME).zip *
mv $(BUILD_DIR)/$(FNAME).zip $(BUILD_DIR)/$(FNAME).xpi
@echo "REMEMBER: Update links to http://siphon-fx.com."
@echo "REMEMBER: Update version number in defaults/preferences/defaults.js."
@echo "REMEMBER: FIX FIRST RUN"
test:
mkdir -p $(BUILD_DIR)/$(FNAME)-test
build_rdf.py $(VERSION)
cp -r $(REQ_FILES) $(REQ_DIRS) $(XTRA_FILES) $(BUILD_DIR)/$(FNAME)-test
echo $(VERSION) > $(BUILD_DIR)/$(FNAME)-test/VERSION
cd $(BUILD_DIR)/$(FNAME)-test && zip -r ../$(FNAME)-test.zip *
mv $(BUILD_DIR)/$(FNAME)-test.zip $(BUILD_DIR)/$(FNAME)-test.xpi
@echo "REMEMBER: Update links to http://siphon-fx.com."
@echo "REMEMBER: Update version number in defaults/preferences/defaults.js."
@echo "REMEMBER: FIX FIRST RUN"
rdf:
build_rdf.py $(VERSION)
clean:
rm -rf $(BUILD_DIR)