OSDN Git Service

build: Fix installing udev rules file when $(srcdir) != $(builddir)
authorAnderson Lizardo <anderson.lizardo@openbossa.org>
Fri, 21 Dec 2012 16:25:03 +0000 (12:25 -0400)
committerJohan Hedberg <johan.hedberg@intel.com>
Fri, 21 Dec 2012 22:15:52 +0000 (00:15 +0200)
Path to files on source tree should be prefixed with $(srcdir),
otherwise they are not found if $(srcdir) != $(builddir).

Makefile.am

index e2cf3a6..9337ffa 100644 (file)
@@ -280,7 +280,7 @@ src/builtin.h: src/genbuiltin $(builtin_sources)
        $(AM_V_GEN)$(srcdir)/src/genbuiltin $(builtin_modules) > $@
 
 tools/%.rules:
-       $(AM_V_GEN)cp $(subst 97-,,$@) $@
+       $(AM_V_GEN)cp $(srcdir)/$(subst 97-,,$@) $@
 
 $(lib_libbluetooth_la_OBJECTS): $(local_headers)