njn | ae508b0 | 2009-04-24 04:12:28 +0000 | [diff] [blame] | 1 | # This file contains things shared by coregrind/Makefile.am and tool |
| 2 | # Makefile.am files. |
| 3 | |
njn | 808e20e | 2009-02-06 23:27:16 +0000 | [diff] [blame] | 4 | # This is used by coregrind/Makefile.am and Makefile.tool.am for doing |
njn | 6bf365c | 2009-02-11 00:35:45 +0000 | [diff] [blame] | 5 | # "in-place" installs. It copies $(noinst_PROGRAMS) into $inplacedir. |
njn | ac31b05 | 2009-02-12 00:30:02 +0000 | [diff] [blame] | 6 | # It needs to be depended on by an 'all-local' rule. |
| 7 | inplace-noinst_PROGRAMS: |
njn | 808e20e | 2009-02-06 23:27:16 +0000 | [diff] [blame] | 8 | if [ -n "$(noinst_PROGRAMS)" ] ; then \ |
njn | ac31b05 | 2009-02-12 00:30:02 +0000 | [diff] [blame] | 9 | mkdir -p $(inplacedir); \ |
| 10 | for f in $(noinst_PROGRAMS) ; do \ |
njn | 6bf365c | 2009-02-11 00:35:45 +0000 | [diff] [blame] | 11 | rm -f $(inplacedir)/$$f; \ |
| 12 | ln -f -s ../$(subdir)/$$f $(inplacedir); \ |
njn | 808e20e | 2009-02-06 23:27:16 +0000 | [diff] [blame] | 13 | done ; \ |
| 14 | fi |
| 15 | |
njn | 3e65340 | 2009-02-06 07:12:57 +0000 | [diff] [blame] | 16 | # This is used by coregrind/Makefile.am and by <tool>/Makefile.am for doing |
njn | 6bf365c | 2009-02-11 00:35:45 +0000 | [diff] [blame] | 17 | # "make install". It copies $(noinst_PROGRAMS) into $prefix/lib/valgrind/. |
njn | 3e65340 | 2009-02-06 07:12:57 +0000 | [diff] [blame] | 18 | # It needs to be depended on by an 'install-exec-local' rule. |
njn | ac31b05 | 2009-02-12 00:30:02 +0000 | [diff] [blame] | 19 | install-noinst_PROGRAMS: |
tom | 8609d39 | 2005-12-19 12:48:03 +0000 | [diff] [blame] | 20 | if [ -n "$(noinst_PROGRAMS)" ] ; then \ |
njn | ac31b05 | 2009-02-12 00:30:02 +0000 | [diff] [blame] | 21 | $(mkinstalldirs) $(DESTDIR)$(valdir); \ |
tom | 8609d39 | 2005-12-19 12:48:03 +0000 | [diff] [blame] | 22 | for f in $(noinst_PROGRAMS); do \ |
njn | 6bf365c | 2009-02-11 00:35:45 +0000 | [diff] [blame] | 23 | $(INSTALL_PROGRAM) $$f $(DESTDIR)$(valdir); \ |
tom | 8609d39 | 2005-12-19 12:48:03 +0000 | [diff] [blame] | 24 | done ; \ |
tom | 8609d39 | 2005-12-19 12:48:03 +0000 | [diff] [blame] | 25 | fi |
njn | 3e65340 | 2009-02-06 07:12:57 +0000 | [diff] [blame] | 26 | |