blob: c797ee7139aeba0798e3ab968e9a633523b53f5d [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.
njnac31b052009-02-12 00:30:02 +00003# It needs to be depended on by an 'all-local' rule.
4inplace-noinst_PROGRAMS:
njn808e20e2009-02-06 23:27:16 +00005 if [ -n "$(noinst_PROGRAMS)" ] ; then \
njnac31b052009-02-12 00:30:02 +00006 mkdir -p $(inplacedir); \
7 for f in $(noinst_PROGRAMS) ; do \
njn6bf365c2009-02-11 00:35:45 +00008 rm -f $(inplacedir)/$$f; \
9 ln -f -s ../$(subdir)/$$f $(inplacedir); \
njn808e20e2009-02-06 23:27:16 +000010 done ; \
11 fi
12
njn3e653402009-02-06 07:12:57 +000013# This is used by coregrind/Makefile.am and by <tool>/Makefile.am for doing
njn6bf365c2009-02-11 00:35:45 +000014# "make install". It copies $(noinst_PROGRAMS) into $prefix/lib/valgrind/.
njn3e653402009-02-06 07:12:57 +000015# It needs to be depended on by an 'install-exec-local' rule.
njnac31b052009-02-12 00:30:02 +000016install-noinst_PROGRAMS:
tom8609d392005-12-19 12:48:03 +000017 if [ -n "$(noinst_PROGRAMS)" ] ; then \
njnac31b052009-02-12 00:30:02 +000018 $(mkinstalldirs) $(DESTDIR)$(valdir); \
tom8609d392005-12-19 12:48:03 +000019 for f in $(noinst_PROGRAMS); do \
njn6bf365c2009-02-11 00:35:45 +000020 $(INSTALL_PROGRAM) $$f $(DESTDIR)$(valdir); \
tom8609d392005-12-19 12:48:03 +000021 done ; \
tom8609d392005-12-19 12:48:03 +000022 fi
njn3e653402009-02-06 07:12:57 +000023