source: libbsdport/bsd_eth_drivers/links.am @ d766703

Last change on this file since d766703 was d766703, checked in by Chris Johns <chrisj@…>, on Oct 12, 2009 at 4:51:04 AM

2009-09-12 Chris Johns <chrisj@…>

  • links.am: Fixed the links so they work with absolute paths.
  • Property mode set to 100644
File size: 676 bytes
Line 
1CLOBBER_ADDITIONS = $(LINKS) $(DUMMYHEADERS)
2
3$(DUMMYHEADERS):
4        @if [ ! -d `dirname $@` ] ; then mkdir -p `dirname $@`; fi
5        @touch $@
6
7# if [ "$(echo $@ | sed -e 's/^\/.*/yes/')" = "yes" ]; then
8
9$(LINKS):
10        echo $@
11        if [ ! -d $(dir $@) ] ; then mkdir -p $(dir $@); fi
12        if [ ! -e $@  ]; then \
13          rm -rf $@ ; \
14          if [ "`echo $(srcdir) | sed -e 's/^\/.*/yes/'`" = "yes" ]; then \
15            ln -s `echo $(dir $@) | sed -e 's%[^/]\+[/]\+%%g'`$(srcdir)/$(notdir $@) $@ ; \
16          else \
17            ln -s `echo $(dir $@) | sed -e 's%[^/]\+[/]\+%../%g'`$(srcdir)/$(notdir $@) $@ ; \
18          fi ; \
19        fi
20
21
22BUILT_SOURCES += $(DUMMYHEADERS) $(LINKS)
23
24distclean-local:
25        $(RM) -r $(CLOBBER_ADDITIONS)
Note: See TracBrowser for help on using the repository browser.