diff options
Diffstat (limited to 'bsd_eth_drivers/links.am')
-rw-r--r-- | bsd_eth_drivers/links.am | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/bsd_eth_drivers/links.am b/bsd_eth_drivers/links.am new file mode 100644 index 0000000..22c6e8e --- /dev/null +++ b/bsd_eth_drivers/links.am @@ -0,0 +1,15 @@ +CLOBBER_ADDITIONS = $(LINKS) $(DUMMYHEADERS) + +$(DUMMYHEADERS): + @if [ ! -d `dirname $@` ] ; then mkdir -p `dirname $@`; fi + @touch $@ + +$(LINKS): + @if [ ! -d $(dir $@) ] ; then mkdir -p $(dir $@); fi + @ln -s `echo $(dir $@) | sed -e 's%[^/]\+[/]\+%../%g'`$(srcdir)/$(notdir $@) $@ + + +BUILT_SOURCES += $(DUMMYHEADERS) $(LINKS) + +distclean-local: + $(RM) -r $(CLOBBER_ADDITIONS) |