diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2015-05-13 15:43:55 +0200 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2015-05-14 00:19:32 +0200 |
commit | a8fc483ca4914ddc67b7831150f1ee4c3c429ec1 (patch) | |
tree | 2a96a443b69b5446ef7307a41b7496a21d5a7d31 | |
parent | 7bd1559db62ce5986da806424a193a25965f5fdc (diff) | |
download | lvm2-a8fc483ca4914ddc67b7831150f1ee4c3c429ec1.tar.gz |
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.
-rw-r--r-- | Makefile.in | 3 | ||||
-rw-r--r-- | make.tmpl.in | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/Makefile.in b/Makefile.in index be4241c81..43a6ed08a 100644 --- a/Makefile.in +++ b/Makefile.in @@ -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 diff --git a/make.tmpl.in b/make.tmpl.in index d85dd6912..1aae6a293 100644 --- a/make.tmpl.in +++ b/make.tmpl.in @@ -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 |