From: Frank Mori Hess Date: Wed, 1 Aug 2007 19:41:39 +0000 (+0000) Subject: Fix problems apparently caused by builddir not being set by older versions X-Git-Tag: r0_7_74~1 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=cd234b54b374c41c6201c587fb6609810475f27e;p=comedi.git Fix problems apparently caused by builddir not being set by older versions of auto* tools. --- diff --git a/comedi/Makefile.am b/comedi/Makefile.am index b9dfc695..9d17a791 100644 --- a/comedi/Makefile.am +++ b/comedi/Makefile.am @@ -10,11 +10,10 @@ module_PROGRAMS = all-local: #if builddir is not srcdir, make symbolic links in the builddir to the source files so #the kernel's build system doesn't get lost. - if test "$(srcdir)" != "$(builddir)"; then \ + if test "$(srcdir)" != "."; then \ for dir in . drivers kcomedilib drivers/addi-data; do \ - $(mkdir_p) $(builddir)/$$dir; \ for file in `ls @abs_srcdir@/$$dir/*\.[ch] @abs_srcdir@/$$dir/Kbuild | $(GREP) -v \.mod\.c`; do \ - LINK_NAME=$(builddir)/$$dir/`basename "$$file"`; \ + LINK_NAME=$$dir/`basename "$$file"`; \ if test ! -e $$LINK_NAME; then ln -vs $$file $$LINK_NAME; fi; \ done; \ done; \