Re: Error in make file
- From: Baho Utot <baho-utot@xxxxxxxxxxxx>
- Date: Tue, 29 Jan 2008 18:13:29 -0500
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 :(
--
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
- Error in make file
- Prev by Date: A new reader? Welcome to comp.os.linux.misc, read this first if you're new here (FAQ)
- Next by Date: Re: Error in make file
- Previous by thread: Re: Error in make file
- Next by thread: Re: Error in make file
- Index(es):
Relevant Pages
|