[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: problems with recursive make target
From: |
Ralf Wildenhues |
Subject: |
Re: problems with recursive make target |
Date: |
Mon, 29 Jun 2009 21:44:52 +0200 |
User-agent: |
Mutt/1.5.20 (2009-06-15) |
Hello John,
* address@hidden wrote on Mon, Jun 29, 2009 at 09:36:09PM CEST:
> in top/lib/Makefile.am
> SUBDIRS = pika_comm pika_utilities
> # provide a separate recursive target for making tests
> tests : all
> echo `pwd`;
> for dir in $(SUBDIRS); do \
> cd $$dir && $(MAKE) $(AM_MAKEFLAGS) $@ || exit 1; \
> done
> echo `pwd`;
> .PHONY : tests
You don't ever 'cd' back out of the first subdirectory, so you can't
find the second:
> make[2]: Leaving directory `/users/wohlbier/MPMC/pika/build/lib/pika_comm'
> /bin/sh: line 1: cd: pika_utilities: No such file or directory
> make[1]: *** [tests] Error 1
Cheers,
Ralf