sewardj | a273dc6 | 2007-11-17 18:35:54 +0000 | [diff] [blame] | 1 | |
| 2 | # For a description of what these magic sed commands do, see comments |
| 3 | # in Makefile.install.am (which has identical magic) |
| 4 | |
nethercote | 4388a40 | 2004-09-01 23:20:49 +0000 | [diff] [blame] | 5 | all-local: |
sewardj | a273dc6 | 2007-11-17 18:35:54 +0000 | [diff] [blame] | 6 | 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 |