config/baseconfig.mk
author Nihanth Subramanya <nhnt11@gmail.com>
Sun, 07 Dec 2014 15:28:11 +0530
changeset 21471 7a58936e02a917222d1f62f87178ccb4f73bb9e3
parent 21455 7254179a9d7d8fcb6b6847e31f82847fc309c69c
permissions -rw-r--r--
Buddy list window not resizable when opened using Cmd+Shift+C. r=aleth

# This file is normally included by autoconf.mk, but it is also used
# directly in python/mozbuild/mozbuild/base.py for gmake validation.
# We thus use INCLUDED_AUTOCONF_MK to enable/disable some parts depending
# whether a normal build is happening or whether the check is running.

# When mach wants to know if we're to use mozmake, it runs:
# make -f topsrcdir/config/baseconfig.mk
# The first word of MAKEFILE_LIST is the main file we're running. Grabbing the
# parent of that directory therefore gets us the topsrcdir of comm-central,
# whence we get the mozilla directory to run the "real" baseconfig.mk logic.
ifndef INCLUDED_AUTOCONF_MK
topsrcdir := $(dir $(firstword $(MAKEFILE_LIST)))..
endif

MOZILLA_SRCDIR = $(topsrcdir)/mozilla
include $(MOZILLA_SRCDIR)/config/baseconfig.mk