blob: 3ad296a166a41067fde1503261504fdeb5393bf6 [file] [log] [blame]
sewardja273dc62007-11-17 18:35:54 +00001
2# For a description of what these magic sed commands do, see comments
3# in Makefile.install.am (which has identical magic)
4
nethercote4388a402004-09-01 23:20:49 +00005all-local:
sewardja273dc62007-11-17 18:35:54 +00006 if [ -n "$(noinst_PROGRAMS)" ] ; then \
7 for f in $(noinst_PROGRAMS); do \
8 name=`echo $$f | sed -e 's/-\([^-]*-[^-.]*\)\(\..*\)\?$$/\2/'`; \
9 plat=`echo $$f | sed -e 's/^.*-\([^-]*-[^-.]*\)\(\..*\)\?$$/\1/'`; \
10 mkdir -p $(inplacedir)/$$plat; \
11 rm -f $(inplacedir)/$$plat/$$name; \
12 ln -f -s ../../$(subdir)/$$f $(inplacedir)/$$plat/$$name; \
13 done ; \
14 fi