]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Removed Makefile.core.am with some judicious refactoring. Also fix a stupid
authorNicholas Nethercote <njn@valgrind.org>
Fri, 6 Feb 2009 05:34:19 +0000 (05:34 +0000)
committerNicholas Nethercote <njn@valgrind.org>
Fri, 6 Feb 2009 05:34:19 +0000 (05:34 +0000)
typo in launcher-linux.c that was added in the last commit.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9116

Makefile.inplace.am [moved from Makefile.tool-inplace.am with 74% similarity]
Makefile.install.am
Makefile.tool.am
coregrind/Makefile.am
coregrind/launcher-linux.c

similarity index 74%
rename from Makefile.tool-inplace.am
rename to Makefile.inplace.am
index 3ad296a166a41067fde1503261504fdeb5393bf6..839fc32fae3f113f6f7adc464b92d8b8e0bc6ce3 100644 (file)
@@ -1,4 +1,6 @@
-
+# This is used by coregrind/Makefile.am and Makefile.tool.am for doing
+# "in-place" installs.  It copies $(noinst_PROGRAMS) into $inplacedir, doing
+# some magic renaming as it does.
 # For a description of what these magic sed commands do, see comments
 # in Makefile.install.am (which has identical magic)
 
index cde1a548b133a108b89001ef52808e31c81e47b5..8ac1db947f9a9cd4625e901eb6e8f24c219f9eae 100644 (file)
@@ -10,7 +10,7 @@
 #    $prefix/lib/valgrind/omega-x86-linux/exp
 # or similarly mutant place.
 #
-# Note there is identical sed magic in Makefile.tool-inplace.am.
+# Note there is identical sed magic in Makefile.inplace.am.
 
 # What the second for loop does: it copies libcoregrind.a and libvex.a
 # into the correct (target-specific) lib dirs at install time.
index b02ee377c572deae5041b47e07dedf58cece1e5b..3c6be1a9ee6f7c49b79802e7c0ebaf38b4969929 100644 (file)
@@ -3,8 +3,8 @@ SUBDIRS = . tests docs
 
 include $(top_srcdir)/Makefile.all.am
 include $(top_srcdir)/Makefile.flags.am
+include $(top_srcdir)/Makefile.inplace.am
 include $(top_srcdir)/Makefile.install.am
-include $(top_srcdir)/Makefile.tool-inplace.am
 
 
 LIBREPLACEMALLOC_X86_LINUX = \
index d7963414bcc5a751fd7740b2423747b7b8f682eb..4ae49d35bd2576bd6d06924ddcdbae7d1564c40f 100644 (file)
@@ -6,6 +6,7 @@
 
 include $(top_srcdir)/Makefile.all.am
 include $(top_srcdir)/Makefile.flags.am
+include $(top_srcdir)/Makefile.inplace.am
 include $(top_srcdir)/Makefile.install.am
 
 
@@ -419,15 +420,6 @@ clean-local:
 
 MANUAL_DEPS = $(noinst_HEADERS) $(include_HEADERS)
 
-all-local:
-       for f in $(noinst_PROGRAMS); do \
-         p=`echo $$f | sed -e 's/^[^-]*-//' -e 's/\..*$$//'`; \
-         n=`echo $$f | sed -e 's/-[^-]\{1,\}-[^-.]\{1,\}//'`; \
-         mkdir -p $(inplacedir)/$$p; \
-         rm -f $(inplacedir)/$$p/$$n; \
-         ln -f -s ../../$(subdir)/$$f $(inplacedir)/$$p/$$n; \
-       done
-
 EXTRA_DIST = \
        m_debuginfo/UNUSED_STABS.txt \
        m_debuginfo/README.txt
index d7ed224edaa2ecc23c36cfd2e3113dc369104c06..75dfbfaa7c9b534cafcb570736872f6f245d0fd1 100644 (file)
@@ -243,7 +243,7 @@ int main(int argc, char** argv, char** envp)
        (0==strcmp(VG_PLATFORM,"amd64-linux")) ||
        (0==strcmp(VG_PLATFORM,"ppc32-linux")) ||
        (0==strcmp(VG_PLATFORM,"ppc64-linux")))
-      default_platform = VG_PLATFORM"ppc32-linux";
+      default_platform = VG_PLATFORM;
    else
       barf("Unknown VG_PLATFORM '%s'", VG_PLATFORM);