build: Fix install of udev rules in VPATH builds
authorInaky Perez-Gonzalez <inaky.perez-gonzalez@intel.com>
Wed, 26 May 2010 19:49:25 +0000 (12:49 -0700)
committerDenis Kenzior <denkenz@gmail.com>
Fri, 28 May 2010 14:48:34 +0000 (09:48 -0500)
When the build directory is different than the source directory, we
need to specify the source prefix to the original file we are
copying.

Makefile.am

index ed13346..31c157c 100644 (file)
@@ -418,7 +418,7 @@ src/ofono.ver: src/ofono.exp
        $(AM_V_at)echo "local: *; };" >> $@
 
 plugins/%.rules:
-       $(AM_V_GEN)cp $(subst 97-,,$@) $@
+       $(AM_V_GEN)cp $(srcdir)/$(subst 97-,,$@) $@
 
 $(src_ofonod_OBJECTS) $(unit_objects): $(local_headers)