This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
"cd dir && $(MAKE)", not "cd dir; $(MAKE)"
- From: Doug Evans <dje at sebabeach dot org>
- To: binutils at sources dot redhat dot com
- Date: Wed, 18 Dec 2002 18:12:45 -0800 (PST)
- Subject: "cd dir && $(MAKE)", not "cd dir; $(MAKE)"
My "make install" was running ad-infinitum.
^c gave this:
make[12]: *** [install-demos] Interrupt
make[11]: *** [install-libraries] Interrupt
make[10]: *** [install] Interrupt
make[9]: *** [install-itcl] Interrupt
make[8]: *** [install-etc] Interrupt
make[7]: *** [install-etc] Interrupt
make[6]: *** [install-etc] Interrupt
make[5]: *** [install-etc] Interrupt
make[4]: *** [install-etc] Interrupt
make[3]: *** [install-etc] Interrupt
make[2]: *** [install-etc] Interrupt
make[1]: *** [install-etc] Interrupt
make: *** [install-etc] Interrupt
seba:~/gnu/m32r/bsrc$
which led me to this:
.PHONY: all-etc maybe-all-etc
maybe-all-etc:
all-etc: configure-etc
@r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
(cd etc; $(MAKE) $(FLAGS_TO_PASS) all)
.PHONY: check-etc
check-etc:
@r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
(cd etc; $(MAKE) $(FLAGS_TO_PASS) check)
.PHONY: install-etc maybe-install-etc
maybe-install-etc:
install-etc: installdirs
@r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
(cd etc; $(MAKE) $(FLAGS_TO_PASS) install)
If etc doesn't exist you've got yourself an infinite loop.
It looks like this bug exists throughout the Makefile.
Presumably it's generated from the same place so there's
only a few places that actually need fixing.
[I updated this morning. I'm guessing the bug is still there,
apologies if not.]