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