gecko/services/sync/tests/unit/Makefile

51 lines
1.1 KiB
Makefile
Raw Normal View History

# 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)
2009-07-10 22:20:45 -07:00
extensiondir = $(subst /,\,$(shell pwd -W))\$(native_topsrcdir)\dist\stage
else
2009-07-10 22:20:45 -07:00
extensiondir = `pwd`/$(topsrcdir)/dist/stage
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\};
include ../harness/Makefile