2009-03-20 00:14:21 -07:00
|
|
|
# profiledir needs to be an absolute path on Mac OS X (FIXME: file bug).
|
|
|
|
profiledir = $(abspath ../profile)
|
|
|
|
sys := $(shell uname -s)
|
|
|
|
|
|
|
|
# OS detection
|
|
|
|
|
|
|
|
ifeq ($(sys), Darwin)
|
|
|
|
os = Darwin
|
|
|
|
else
|
|
|
|
ifeq ($(sys), Linux)
|
|
|
|
os = Linux
|
|
|
|
else
|
|
|
|
ifeq ($(sys), MINGW32_NT-6.0)
|
|
|
|
os = WINNT
|
|
|
|
else
|
|
|
|
ifeq ($(sys), MINGW32_NT-5.1)
|
|
|
|
os = WINNT
|
|
|
|
else
|
|
|
|
$(error Sorry, your os is unknown/unsupported: $(sys))
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(topsrcdir),)
|
|
|
|
topsrcdir = ../..
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(native_topsrcdir),)
|
|
|
|
ifeq ($(os), WINNT)
|
|
|
|
native_topsrcdir = ..\..
|
|
|
|
else
|
|
|
|
native_topsrcdir = ../..
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
# The path to the extension, in the native format, as required by the extension
|
|
|
|
# manager when it installs an extension via a file in the <profile>/extensions/
|
|
|
|
# directory that contains the path to the extension.
|
|
|
|
ifeq ($(os), WINNT)
|
|
|
|
extensiondir = $(subst /,\,$(shell pwd -W))\$(native_topsrcdir)
|
|
|
|
else
|
|
|
|
extensiondir = `pwd`/$(topsrcdir)
|
|
|
|
endif
|
|
|
|
|
|
|
|
# A command that installs the extension into the profile when the harness
|
|
|
|
# creates a new profile.
|
|
|
|
configure_profile = echo "$(extensiondir)" > $(profiledir)/extensions/\{340c2bbc-ce74-4362-90b5-7c26312808ef\};
|
|
|
|
|
2008-11-03 14:41:39 -08:00
|
|
|
include ../harness/Makefile
|