blob: e5ba1180972d80a2377b5279b8d5293213219d8e [file] [log] [blame]
njnae508b02009-04-24 04:12:28 +00001# This file contains things shared by coregrind/Makefile.am and tool
2# Makefile.am files.
3
njn808e20e2009-02-06 23:27:16 +00004# This is used by coregrind/Makefile.am and Makefile.tool.am for doing
njn6bf365c2009-02-11 00:35:45 +00005# "in-place" installs. It copies $(noinst_PROGRAMS) into $inplacedir.
njnac31b052009-02-12 00:30:02 +00006# It needs to be depended on by an 'all-local' rule.
7inplace-noinst_PROGRAMS:
njn808e20e2009-02-06 23:27:16 +00008 if [ -n "$(noinst_PROGRAMS)" ] ; then \
njnac31b052009-02-12 00:30:02 +00009 mkdir -p $(inplacedir); \
10 for f in $(noinst_PROGRAMS) ; do \
njn6bf365c2009-02-11 00:35:45 +000011 rm -f $(inplacedir)/$$f; \
12 ln -f -s ../$(subdir)/$$f $(inplacedir); \
njn808e20e2009-02-06 23:27:16 +000013 done ; \
14 fi
15
njn3e653402009-02-06 07:12:57 +000016# This is used by coregrind/Makefile.am and by <tool>/Makefile.am for doing
njn6bf365c2009-02-11 00:35:45 +000017# "make install". It copies $(noinst_PROGRAMS) into $prefix/lib/valgrind/.
njn3e653402009-02-06 07:12:57 +000018# It needs to be depended on by an 'install-exec-local' rule.
njnac31b052009-02-12 00:30:02 +000019install-noinst_PROGRAMS:
tom8609d392005-12-19 12:48:03 +000020 if [ -n "$(noinst_PROGRAMS)" ] ; then \
njnac31b052009-02-12 00:30:02 +000021 $(mkinstalldirs) $(DESTDIR)$(valdir); \
tom8609d392005-12-19 12:48:03 +000022 for f in $(noinst_PROGRAMS); do \
njn6bf365c2009-02-11 00:35:45 +000023 $(INSTALL_PROGRAM) $$f $(DESTDIR)$(valdir); \
tom8609d392005-12-19 12:48:03 +000024 done ; \
tom8609d392005-12-19 12:48:03 +000025 fi
njn3e653402009-02-06 07:12:57 +000026