[PATCH] Mark install as phony

Michael Hope michael.hope@linaro.org
Tue Sep 25 22:54:00 GMT 2012


Mark the install target in Makefile.in as phony so the rule will still run
when the user has a 'install' directory in their build directory.

I normally set the install prefix to $PWD/install using something like:

.../build/glibc$ ../../glibc/configure --prefix=$PWD/install

which works fine on the first 'make install' but blocks each one past that.

OK for trunk?

-- Michael

2012-09-26  Michael Hope  <michael.hope@linaro.org>

	* Makefile.in (install): Mark as phony.

diff --git a/Makefile.in b/Makefile.in
index 1f5dc1c..2618cc6 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -6,6 +6,7 @@ srcdir = @srcdir@
  all .DEFAULT:
         $(MAKE) -r PARALLELMFLAGS="$(PARALLELMFLAGS)" -C $(srcdir) objdir=`pwd` $@

+.PHONY: install
  install:
         LANGUAGE=C LC_ALL=C; export LANGUAGE LC_ALL; \
         $(MAKE) -r PARALLELMFLAGS="$(PARALLELMFLAGS)" -C $(srcdir) objdir=`pwd` $@



More information about the Libc-alpha mailing list