source: libbsdport/bsd_eth_drivers/links.am @ d27c355

Last change on this file since d27c355 was d27c355, checked in by Till Straumann <strauman@…>, on Mar 7, 2010 at 5:11:23 PM

2010-03-07 Till Straumann <Till.Straumann@…>

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