aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjoern Michaelsen <bjoern.michaelsen@canonical.com>2012-05-18 11:52:23 +0200
committerBjoern Michaelsen <bjoern.michaelsen@canonical.com>2012-05-18 11:55:08 +0200
commit1882a7d9f516a3e6320eccd83fe704cee8722fc8 (patch)
tree27715014adedbf0a5c8cab36148d72760865029e
parent3c2ed3fcba9d333718e35ff2f6f3549cfbec3c0b (diff)
do not assume relative positions of modules
-rw-r--r--translations/Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/translations/Makefile b/translations/Makefile
index cda6586a739..c8234c4840e 100644
--- a/translations/Makefile
+++ b/translations/Makefile
@@ -1,7 +1,9 @@
# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
-module_directory:=$(dir $(realpath $(firstword $(MAKEFILE_LIST))))
+ifeq ($(origin SRC_ROOT),undefined)
+SRC_ROOT=$(dir $(realpath $(firstword $(MAKEFILE_LIST))))../../..
+endif
-include $(module_directory)../../../solenv/gbuild/partial_build.mk
+include $(SRC_ROOT)/solenv/gbuild/partial_build.mk
# vim: set noet sw=4 ts=4: