OSDN Git Service

build: Fix build error if path contains spaces
authorSzymon Janc <szymon.janc@tieto.com>
Thu, 28 Nov 2013 11:10:55 +0000 (12:10 +0100)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Thu, 28 Nov 2013 12:33:06 +0000 (14:33 +0200)
janccszy@box:~/bluez test$ make
  GEN      lib/bluetooth/bluetooth.h
ln: target ‘lib/bluetooth/bluetooth.h’ is not a directory
make: *** [lib/bluetooth/bluetooth.h] Error 1

Makefile.am

index 2bb2eb5..a3924aa 100644 (file)
@@ -328,7 +328,7 @@ $(lib_libbluetooth_la_OBJECTS): $(local_headers)
 
 lib/bluetooth/%.h: lib/%.h
        $(AM_V_at)$(MKDIR_P) lib/bluetooth
-       $(AM_V_GEN)$(LN_S) -f $(abs_top_builddir)/$< $@
+       $(AM_V_GEN)$(LN_S) -f "$(abs_top_builddir)"/$< $@
 
 clean-local:
        $(RM) -r lib/bluetooth