Re: Error in make file
- From: Baho Utot <baho-utot@xxxxxxxxxxxx>
- Date: Wed, 30 Jan 2008 17:19:24 -0500
Dan Espen wrote:
Baho Utot <baho-utot@xxxxxxxxxxxx> writes:
Dan Espen wrote:
Baho Utot <baho-utot@xxxxxxxxxxxx> writes:
The following is a fragment of my Makefile (GNU Make 3.81).
I believe the error stems from the grep (line) but I don't know why it
errors.
PKGLIST is a list of sub directories to "grep the Build.Log" looking
for compile and installation errors.
This is the error:
make: *** [errors] Error 1
Makefile fragment
PKGLIST = Linux-API-Headers Man-pages Glibc
errors:
for dir in $(PKGLIST); do \
echo "Checking: "$$dir; \
grep Error $$dir/Build.Log; \
done
Anyone know the fix?
I copied your fragment into a Makefile,
changed all the spaces to tabs and ran it.
Here is the output:
for dir in Linux-API-Headers Man-pages Glibc; do \
echo "Checking: "$dir; \
grep Error $dir/Build.Log; \
done
Checking: Linux-API-Headers
grep: Linux-API-Headers/Build.Log: No such file or directory
Checking: Man-pages
grep: Man-pages/Build.Log: No such file or directory
Checking: Glibc
grep: Glibc/Build.Log: No such file or directory
make: *** [errors] Error 2
everything looks fine to me.
Thanks....
After a little bit more research, I believe to problem is grep returning
a
non zero return value when grep finds a match. Make then thinks
something has failed hence the make: *** [errors] Error 1
I need to think now of a work around or just ignore the error :(
Oh, I see, you don't want to see the error message.
Just prefix the whole command with "-".
Well Ok i did that.
It is still there as it, Now it prints
make: [errors] Error 1 (ignored)
Oh well maybe I should just leave it :)
Thanks
--
Dancin in the ruins tonight
Tayo'y Mga Pinoy
.
- Follow-Ups:
- Re: Error in make file
- From: Dan Espen
- Re: Error in make file
- References:
- Error in make file
- From: Baho Utot
- Re: Error in make file
- From: Dan Espen
- Re: Error in make file
- From: Baho Utot
- Re: Error in make file
- From: Dan Espen
- Error in make file
- Prev by Date: tar of small files
- Next by Date: Re: snmpd silently dies after being started
- Previous by thread: Re: Error in make file
- Next by thread: Re: Error in make file
- Index(es):
Relevant Pages
|