rainbow/Makefile

42 строки
768 B
Makefile
Исходник Обычный вид История

ifeq ($(TOPSRCDIR),)
export TOPSRCDIR = $(shell pwd)
endif
ifeq ($(VERSION),)
2011-03-30 00:38:20 +04:00
export VERSION = 0.4
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
2010-11-05 01:36:27 +03:00
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):
2010-11-05 01:36:27 +03:00
$(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)
2010-11-05 01:36:27 +03:00
$(MAKE) -C components clean