blob: 1f02b6e37d7526ec0cecd16a7e08c764ea767ed3 [file] [log] [blame]
njn808e20e2009-02-06 23:27:16 +00001# This is used by coregrind/Makefile.am and Makefile.tool.am for doing
njn6bf365c2009-02-11 00:35:45 +00002# "in-place" installs. It copies $(noinst_PROGRAMS) into $inplacedir.
njn808e20e2009-02-06 23:27:16 +00003all-local:
4 if [ -n "$(noinst_PROGRAMS)" ] ; then \
5 for f in $(noinst_PROGRAMS); do \
njn6bf365c2009-02-11 00:35:45 +00006 mkdir -p $(inplacedir); \
7 rm -f $(inplacedir)/$$f; \
8 ln -f -s ../$(subdir)/$$f $(inplacedir); \
njn808e20e2009-02-06 23:27:16 +00009 done ; \
10 fi
11
njn3e653402009-02-06 07:12:57 +000012# This is used by coregrind/Makefile.am and by <tool>/Makefile.am for doing
njn6bf365c2009-02-11 00:35:45 +000013# "make install". It copies $(noinst_PROGRAMS) into $prefix/lib/valgrind/.
njn3e653402009-02-06 07:12:57 +000014# It needs to be depended on by an 'install-exec-local' rule.
njn3e653402009-02-06 07:12:57 +000015install-exec-local-programs:
tom8609d392005-12-19 12:48:03 +000016 if [ -n "$(noinst_PROGRAMS)" ] ; then \
17 for f in $(noinst_PROGRAMS); do \
njn6bf365c2009-02-11 00:35:45 +000018 $(mkinstalldirs) $(DESTDIR)$(valdir); \
19 $(INSTALL_PROGRAM) $$f $(DESTDIR)$(valdir); \
tom8609d392005-12-19 12:48:03 +000020 done ; \
tom8609d392005-12-19 12:48:03 +000021 fi
njn3e653402009-02-06 07:12:57 +000022