diff options
author | "Steven J. Hill" <sjhill@realitydiluted.com> | 2005-05-14 22:02:36 +0000 |
---|---|---|
committer | "Steven J. Hill" <sjhill@realitydiluted.com> | 2005-05-14 22:02:36 +0000 |
commit | 8fa4da7fc09e56e3fd3fe7aed9a802f0fdeeeea0 (patch) | |
tree | 5e89cb1e5eea3ea2433cf88e4685887c9efe3c15 /Rules.mak | |
parent | fcb56ce4a88ec5f41f8213d3d05402a9f603993a (diff) |
Top-level makefile fix for OS agnosticism and set the value of TARGET_ARCH
using grep because the '.config' will not get included if we are doing
a 'clean' or other targets. This was preventing the proper cleaning up
target architecture include files.
Diffstat (limited to 'Rules.mak')
-rw-r--r-- | Rules.mak | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -93,7 +93,7 @@ check_gcc=$(shell if $(CC) $(1) -S -o /dev/null -xc /dev/null > /dev/null 2>&1; then echo "$(1)"; else echo "$(2)"; fi) # Make certain these contain a final "/", but no "//"s. -TARGET_ARCH:=$(strip $(subst ",, $(strip $(TARGET_ARCH)))) +TARGET_ARCH:=$(shell grep -s ^TARGET_ARCH .config | sed -e 's/^TARGET_ARCH=//' -e 's/"//g') RUNTIME_PREFIX:=$(strip $(subst //,/, $(subst ,/, $(subst ",, $(strip $(RUNTIME_PREFIX)))))) DEVEL_PREFIX:=$(strip $(subst //,/, $(subst ,/, $(subst ",, $(strip $(DEVEL_PREFIX)))))) export RUNTIME_PREFIX DEVEL_PREFIX |