|
From: Josef W. <Jos...@gm...> - 2005-11-15 17:44:29
|
On Tuesday 15 November 2005 17:58, Tom Hughes wrote: > You can possibly do it with automake conditionals, though you may need > automake 1.7 for that - valgrind does that now though anyway. See any > of the tools for how noinst_PROGRAMS is defined. If have a target install-exec-local: $(INSTALL_PROGRAM) ./callgrind \ $(DESTDIR)$(valdir)/@VG_ARCH@-@VG_OS@ This should be done only for VG31. Is it enough to put if BUILD_FOR_VG30 ... endif around it? > It's a horrid hack I use to build callgrind and valgrind all as part > of a single RPM so I have to patch callgrind to build against the > uninstalled version of valgrind in my build tree and not try and run > the installed valgrind to find out what version it is... Wow. Perhaps callgrinds configure should get an option --uninstalled-vg-path=... to compile against an uninstalled VG? Josef |