This changeset does the following:

IDcheck.sh:
1. Fixes the DESTDIR != [ "", "/" ] behavior.
2. Spew out less awk errors if files don't exist by instead short-circuiting the logic to detect whether or not the file exists in the fe subroutine.

Makefile:
This adds SKIP_IDCHECK behavior, by request of Michal <michal.simek@petalogix.com>, so it's no longer required for make install, and can be disabled by entering specifying the variable SKIP_IDCHECK=1 when calling make install, e.g...

make \
[make-options-and-variables] \
SKIP_IDCHECK=1 \
install

Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
Tested-by Michal Simek <michal.simek@petalogix.com>
diff --git a/Makefile b/Makefile
index 4cf124b..953eddf 100644
--- a/Makefile
+++ b/Makefile
@@ -14,6 +14,10 @@
 export CFLAGS += -Wall $(CROSS_CFLAGS)
 export CC AR RANLIB CPPFLAGS LDFLAGS HAS_NUMA
 
+# SKIP_IDCHECK	!= 1, defaults to previous behavior, which is to execute
+# IDcheck.sh at the end of `make install'.
+SKIP_IDCHECK		?= 0 
+
 -include config.mk
 
 VPATH += include m4
@@ -36,8 +40,9 @@
 	@$(MAKE) -C m4 install
 	@$(MAKE) -C doc/man1 install
 	@$(MAKE) -C doc/man3 install
-
+ifneq ($(strip $(SKIP_IDCHECK)),1)
 	@./IDcheck.sh
+endif
 
 libltp.a: config.h
 	@$(MAKE) -C lib $@
@@ -54,7 +59,9 @@
 uclinux_install: uclinux
 	@$(MAKE) -C testcases uclinux_install
 	@$(MAKE) -C tools install
+ifneq ($(strip $(SKIP_IDCHECK)),1)
 	@./IDcheck.sh
+endif
 
 uclinux_libltp.a:
 	@$(MAKE) -C lib UCLINUX=1 libltp.a