forked from mozilla/rainbow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
41 lines (33 loc) · 768 Bytes
/
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
38
39
40
ifeq ($(TOPSRCDIR),)
export TOPSRCDIR = $(shell pwd)
endif
ifeq ($(VERSION),)
export VERSION = 0.5
endif
sys := $(shell uname -s)
ifeq ($(sys), Darwin)
so = dylib
else
ifeq ($(sys), MINGW32_NT-5.1)
so = dll
else
ifeq ($(sys), Linux)
so = so
else
$(error Sorry, your os is unknown/unsupported: $(sys))
endif
endif
endif
so_files=components/libmediarecorder.$(so)
xpt_files=components/IMediaRecorder.xpt
xpi_name=rainbow-$(VERSION)-dev.xpi
xpi_files=chrome.manifest install.rdf content/ $(so_files) $(xpt_files)
all: xpi
$(so_files) $(xpt_files):
$(MAKE) -C components
xpi: $(so_files) $(xpt_files)
rm -f $(TOPSRCDIR)/$(xpi_name)
cd $(TOPSRCDIR);zip -9r $(xpi_name) $(xpi_files)
clean:
rm -f $(TOPSRCDIR)/$(xpi_name)
$(MAKE) -C components clean