master - makefiles: use fullpath when in assign
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=a8fc483ca4914ddc67b7831150f1ee4c3c429ec1 Commit: a8fc483ca4914ddc67b7831150f1ee4c3c429ec1 Parent: 7bd1559db62ce5986da806424a193a25965f5fdc Author: Zdenek Kabelac <[email protected]> AuthorDate: Wed May 13 15:43:55 2015 +0200 Committer: Zdenek Kabelac <[email protected]> CommitterDate: Thu May 14 00:19:32 2015 +0200
makefiles: use fullpath when in assign
We need to put full path right in the assign moment, otherwise command:
make rpm rpmbuild=/my/tmp/dir
cannot work as one would have expected.
--- Makefile.in | 3 ++- make.tmpl.in | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-)
Makefile.in +2 -1
@@ -93,6 +93,7 @@ cscope.out: all: cscope.out endif DISTCLEAN_TARGETS += cscope.out +CLEAN_DIRS += autom4te.cache check check_system check_cluster check_local check_lvmetad unit: all $(MAKE) -C test $(@)
@@ -125,7 +126,7 @@ rpm: dist -e "s,^\(Version:[^0-9%]*\)[0-9.]*$$,\1 $(LVM_VER)," \ -e "s,^\(Release:[^0-9%]*\)[0-9.]\+,\1 $$GIT_VER," \ $(top_srcdir)/spec/source.inc >$(rpmbuilddir)/SOURCES/source.inc - rpmbuild -v --define "_topdir $(abs_top_builddir)/$(rpmbuilddir)" -ba $(top_srcdir)/spec/lvm2.spec + rpmbuild -v --define "_topdir $(rpmbuilddir)" -ba $(top_srcdir)/spec/lvm2.spec generate: conf.generate $(MAKE) -C conf generate
make.tmpl.in +1 -1
@@ -116,7 +116,7 @@ vpath %.exported_symbols $(srcdir) interface = @interface@ interfacebuilddir = $(top_builddir)/libdm/$(interface) -rpmbuilddir = build +rpmbuilddir = $(abs_top_builddir)/build # The number of jobs to run, if blank, defaults to the make standard ifndef MAKEFLAGS