summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.in10
-rwxr-xr-xconfigure8
-rw-r--r--[-rwxr-xr-x]scripts/saveSample.sh.in0
3 files changed, 8 insertions, 10 deletions
diff --git a/Makefile.in b/Makefile.in
index c9e94a2..32c9a1e 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -104,6 +104,7 @@ uninstall: real-uninstall
# Build rules
build-bin: ct-ng scripts/crosstool-NG.sh scripts/saveSample.sh
+ @chmod 755 $^
build-lib: paths.mk
@@ -168,15 +169,10 @@ clean-man:
#--------------------------------------
# Check for --local setup
-ifeq ($(strip $(LOCAL)),1)
+ifeq ($(strip $(LOCAL)),y)
real-install:
- @echo " CHMOD 'ct-ng'"
- @chmod a+x ct-ng
- @echo " CHMOD 'scripts/crosstool-NG.sh'"
- @chmod a+x scripts/crosstool-NG.sh
- @echo " CHMOD 'scripts/saveSample.sh'"
- @chmod a+x scripts/saveSample.sh
+ @true
real-uninstall:
@true
diff --git a/configure b/configure
index fde61a6..677b258 100755
--- a/configure
+++ b/configure
@@ -246,7 +246,7 @@ __EOF__
while [ $# -ne 0 ]; do
case "$1" in
- --local) LOCAL_set=1; shift;;
+ --local) LOCAL_set="y"; shift;;
--prefix*) set_prefix "$1" "$2" && shift || shift 2;;
--bindir*) set_bindir "$1" "$2" && shift || shift 2;;
--libdir*) set_libdir "$1" "$2" && shift || shift 2;;
@@ -262,7 +262,7 @@ done
[ -z "${PREFIX}" ] && set_prefix "" "${PREFIX_DEFAULT}"
# Special case when installing locally
-if [ "${LOCAL_set}" = "1" ]; then
+if [ "${LOCAL_set}" = "y" ]; then
set_prefix "" "$( pwd )"
set_bindir "" "$( pwd )"
set_libdir "" "$( pwd )"
@@ -419,5 +419,7 @@ crosstool-NG configured as follows:
Now run:
make
- make install
__EOF__
+if [ "${LOCAL_set}" = "y" ]; then
+ printf " make install\n"
+fi
diff --git a/scripts/saveSample.sh.in b/scripts/saveSample.sh.in
index b9bced4..b9bced4 100755..100644
--- a/scripts/saveSample.sh.in
+++ b/scripts/saveSample.sh.in