kconfig/check.sh
author Michael Hope <michael.hope@linaro.org>
Thu Sep 29 12:27:54 2011 +1300 (2011-09-29)
changeset 2694 2c01a02334ea
parent 943 1cca90ce0481
permissions -rw-r--r--
Makefile: use phony targets

Add 'build', 'build-*', and 'install' as phony targets to the top level
Makefile.

I tend to do everything in tree with the build in a directory called
'build'. This interfered with the target 'build', making it think the
target was up to date, and stopping scripts/crosstool-NG.sh from being
regenerated.

Added 'install' as I often set the prefix to $PWD/install.

Signed-off-by: Michael Hope <michael.hope@linaro.org>
yann@943
     1
#!/bin/sh
yann@943
     2
# Needed for systems without gettext
yann@943
     3
$* -xc -o /dev/null - > /dev/null 2>&1 << EOF
yann@943
     4
#include <libintl.h>
yann@943
     5
int main()
yann@943
     6
{
yann@943
     7
	gettext("");
yann@943
     8
	return 0;
yann@943
     9
}
yann@943
    10
EOF
yann@943
    11
if [ ! "$?" -eq "0"  ]; then
yann@943
    12
	echo -DKBUILD_NO_NLS;
yann@943
    13
fi
yann@943
    14