diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2010-04-09 21:34:25 +0000 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2010-04-09 21:34:25 +0000 |
commit | c737d348045479f71ea7d31eaeadda16eea94aa9 (patch) | |
tree | 6e8337aabe8a61f34a9afbd95b1132139ccb1b12 /udev | |
parent | 1485ce69c4341ae3153acdc9cbd1f27f252c20fc (diff) | |
download | lvm2-c737d348045479f71ea7d31eaeadda16eea94aa9.tar.gz lvm2-c737d348045479f71ea7d31eaeadda16eea94aa9.tar.xz lvm2-c737d348045479f71ea7d31eaeadda16eea94aa9.zip |
Use vpath instead of VPATH.
Usage of VPATH makes troubles when used within $(builddir).
Not only source files are being found through VPATH,
but targets as well. (make --debug=v)
Thus if user builds the code in $(srcdir) and also in some $(builddir)
he gets mangled results as some generated files (i.e. .export.sym)
are 'reused' from $(srcdir) instead of $(builddir).
This patch switches to use vpath were we could explicitly name
suffixes that should be looked via vpath - we must take care,
we do not generate files with these suffixes:
.c, .in, .po, .exported_symbols
Diffstat (limited to 'udev')
-rw-r--r-- | udev/Makefile.in | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/udev/Makefile.in b/udev/Makefile.in index 0d9e2ec6..2511cf8a 100644 --- a/udev/Makefile.in +++ b/udev/Makefile.in @@ -14,7 +14,6 @@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ top_builddir = @top_builddir@ -VPATH = @srcdir@ DM_RULES=10-dm.rules 13-dm-disk.rules 95-dm-notify.rules LVM_RULES=11-dm-lvm.rules @@ -24,6 +23,8 @@ CLEAN_TARGETS=10-dm.rules include $(top_builddir)/make.tmpl +vpath %.rules $(srcdir) + %: %.in $(SED) -e "s/(DM_DIR)/$(DM_DIR)/" $< >$@ |