From e10d9b4be3676cbffb002e4c8ff46763d7cc2739 Mon Sep 17 00:00:00 2001 From: tecodev Date: Sun, 6 May 2007 20:08:22 +0000 Subject: [PATCH] * device/lib/pic/Makefile.rules, * device/lib/pic16/Makefile.rules: make sure *.ignore file exists, made "&> /dev/null" redirection sh-safe ("> /dev/null 2>&1") git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4791 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- ChangeLog | 6 ++++++ device/lib/pic/Makefile.rules | 2 +- device/lib/pic16/Makefile.rules | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 77d7045d..abe17e87 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2007-05-06 Raphael Neider + + * device/lib/pic/Makefile.rules, + * device/lib/pic16/Makefile.rules: make sure *.ignore file exists, + made "&> /dev/null" redirection sh-safe ("> /dev/null 2>&1") + 2007-05-06 Raphael Neider * src/pic16/device.h, diff --git a/device/lib/pic/Makefile.rules b/device/lib/pic/Makefile.rules index 7c2c114f..3cb7efb8 100644 --- a/device/lib/pic/Makefile.rules +++ b/device/lib/pic/Makefile.rules @@ -56,7 +56,7 @@ endif ifneq (,$(strip $(SUBDIRS))) recurse : force $(Q)+for DIR in $(SUBDIRS) ; do \ - $(GREP) "^$${ARCH}$$" "$${DIR}.ignore" &> /dev/null || ( \ + [ -f "$(srcdir)/$${DIR}.ignore" ] && $(GREP) "^$${ARCH}$$" "$${DIR}.ignore" > /dev/null 2>&1 || ( \ $(MKDIR) "$(top_builddir)/$(builddir)/$${DIR}"; \ $(MAKE) -C "$${DIR}" builddir="$(builddir)/$${DIR}" $(MAKECMDGOALS); \ ) || exit 1; \ diff --git a/device/lib/pic16/Makefile.rules b/device/lib/pic16/Makefile.rules index 9acdbc32..405d6a4f 100644 --- a/device/lib/pic16/Makefile.rules +++ b/device/lib/pic16/Makefile.rules @@ -60,7 +60,7 @@ endif ifneq (,$(strip $(SUBDIRS))) recurse : force $(Q)+for DIR in $(SUBDIRS) ; do \ - $(GREP) "^$${ARCH}$$" "$(srcdir)/$${DIR}.ignore" &> /dev/null || ( \ + [ -f "$(srcdir)/$${DIR}.ignore" ] && $(GREP) "^$${ARCH}$$" "$(srcdir)/$${DIR}.ignore" > /dev/null 2>&1 || ( \ $(MKDIR) "$(top_builddir)/$(builddir)/$${DIR}"; \ $(MAKE) -C "$${DIR}" builddir="$(builddir)/$${DIR}" $(MAKECMDGOALS); \ ) || exit 1; \ -- 2.30.2