This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Add 'build', 'build-*', and 'install' as phony targets to the top level


# HG changeset patch
# User Michael Hope <michael.hope@linaro.org>
# Date 1317252474 -46800
# Node ID 780d29fbc4c574ded2248f55e77dd7cb1540aea4
# Parent  ccba0d4551b2735d29413a4a1b24af37358ebaf7
Add 'build', 'build-*', and 'install' as phony targets to the top level
Makefile.

I tend to do everything in tree with the build in a directory called
'build'.  This interfered with the target 'build', making it think the
target was up to date, and stopping scripts/crosstool-NG.sh from being
regenerated.

Added 'install' as I often set the prefix to $PWD/install.

Signed-off-by: Michael Hope <michael.hope@linaro.org>

diff -r ccba0d4551b2 -r 780d29fbc4c5 Makefile.in
--- a/Makefile.in	Wed Sep 28 16:02:27 2011 +1300
+++ b/Makefile.in	Thu Sep 29 12:27:54 2011 +1300
@@ -347,3 +347,5 @@
 endif # Not --local
 
 endif # No extra MAKEFLAGS were added
+
+.PHONY: build $(patsubst %,build-%,$(TARGETS)) install

--
For unsubscribe information see http://sourceware.org/lists.html#faq


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]