diff options
author | Daniel Silverstone <dsilvers@netsurf-browser.org> | 2012-06-29 18:17:04 +0000 |
---|---|---|
committer | Daniel Silverstone <dsilvers@netsurf-browser.org> | 2012-06-29 18:17:04 +0000 |
commit | 3e0d4f191535e95cf46eda876dca465dfcf657a5 (patch) | |
tree | 78ec59c41d6df10eefd0b17cb5d1e95f70a6c155 /makefiles | |
parent | 48a501324b99668a3a19ec18b6ba80c10adad348 (diff) | |
download | buildsystem-3e0d4f191535e95cf46eda876dca465dfcf657a5.tar.gz buildsystem-3e0d4f191535e95cf46eda876dca465dfcf657a5.tar.bz2 |
Initial rework to have Makefile.tools find itself and set NSBUILD
svn path=/trunk/tools/buildsystem/; revision=13996
Diffstat (limited to 'makefiles')
-rw-r--r-- | makefiles/Makefile.tools | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/makefiles/Makefile.tools b/makefiles/Makefile.tools index 7a5cc63..922e690 100644 --- a/makefiles/Makefile.tools +++ b/makefiles/Makefile.tools @@ -35,6 +35,12 @@ ifeq ($(BUILD),) endif ############################################################################### +# Determine path used to load us, so we can locate other makefiles +############################################################################### + +NSBUILD := $(dir $(lastword $(MAKEFILE_LIST))) + +############################################################################### # Host/target platform detection ############################################################################### @@ -415,7 +421,7 @@ ifeq ($(toolchain),) endif # TODO: It would be nice to avoid this hard-coded path -include build/makefiles/Makefile.$(toolchain) +include $(NSBUILD)/Makefile.$(toolchain) ############################################################################### # Default assembler/compiler/linker/archiver flags @@ -468,4 +474,4 @@ endif # Package config macros ################################################################################ -include build/makefiles/Makefile.pkgconfig +include $(NSBUILD)/Makefile.pkgconfig |