[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[tyndur-devel] build: ein Makefile.local reicht
* buildmk.sh generiert nur noch ein Makefile.local für alle Makefiles
Signed-off-by: Andreas Freimuth <m.nemo@xxxxxxx>
diff --git a/buildmk.sh b/buildmk.sh
--- a/buildmk.sh
+++ b/buildmk.sh
@@ -82,20 +82,22 @@ if [ -f Makefile.conf ]; then
source Makefile.conf
fi
-cat <<EOF > Makefile.local
+if [ "$LOST_BUILDMK_ROOT" == "`pwd`" ]; then
+ cat <<EOF > Makefile.local
BUILD_ROOT=$LOST_BUILDMK_ROOT/build/output
PPC_BINARY=$LOST_TOOLS_PPC
EOF
-# Ist grub legacy installiert?
-if [ -f $GRUB_STAGEDIR/stage1 ]; then
- echo GRUB_VERSION=grub1 >> Makefile.local
-else
- echo GRUB_VERSION=grub2 >> Makefile.local
+ # Ist grub legacy installiert?
+ if [ -f $GRUB_STAGEDIR/stage1 ]; then
+ echo GRUB_VERSION=grub1 >> Makefile.local
+ else
+ echo GRUB_VERSION=grub2 >> Makefile.local
+ fi
fi
cat <<EOF > Makefile
--include Makefile.local
+-include $LOST_BUILDMK_ROOT/Makefile.local
CC=$LOST_TOOLS_GCC $CC_FLAGS $INCLUDES $CC_FLAGS_APPEND
CPP=$LOST_TOOLS_GPP $INCLUDES