aboutsummaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorIgor Gnatenko <i.gnatenko.brain@gmail.com>2016-12-13 19:20:03 +0100
committerJussi Pakkanen <jpakkane@gmail.com>2016-12-15 20:45:01 +0200
commitb80f8b2dc2d1ca838c814ae1b8842860a39de175 (patch)
tree301dba3056e47dd7b6617e94a394aabd6fc7bf7c /data
parent8c24fc7761f70798694ee8fc89e2b080e82910b9 (diff)
downloadmeson-b80f8b2dc2d1ca838c814ae1b8842860a39de175.zip
meson-b80f8b2dc2d1ca838c814ae1b8842860a39de175.tar.gz
meson-b80f8b2dc2d1ca838c814ae1b8842860a39de175.tar.bz2
rpm: use VPATH macro
This is more or less standardized way to have one variable which will work for all buildsystems defined in redhat-rpm-config. Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
Diffstat (limited to 'data')
-rw-r--r--data/macros.meson34
1 files changed, 16 insertions, 18 deletions
diff --git a/data/macros.meson b/data/macros.meson
index 4eb1ab9..6d9fd59 100644
--- a/data/macros.meson
+++ b/data/macros.meson
@@ -1,6 +1,4 @@
%__meson %{_bindir}/meson
-%__sourcedir .
-%__builddir %{_target_platform}
%meson \
export CFLAGS="${CFLAGS:-%__global_cflags}" \
@@ -8,26 +6,26 @@
export FFLAGS="${FFLAGS:-%__global_fflags}" \
export FCFLAGS="${FCFLAGS:-%__global_fcflags}" \
export LDFLAGS="${LDFLAGS:-%__global_ldflags}" \
- %{__meson} \\\
- --buildtype=plain \\\
- --prefix=%{_prefix} \\\
- --libdir=%{_libdir} \\\
- --libexecdir=%{_libexecdir} \\\
- --bindir=%{_bindir} \\\
- --includedir=%{_includedir} \\\
- --datadir=%{_datadir} \\\
- --mandir=%{_mandir} \\\
- --localedir=%{_datadir}/locale \\\
- --sysconfdir=%{_sysconfdir} \\\
- --localstatedir=%{_localstatedir} \\\
- %{__sourcedir} %{__builddir} \\\
+ %{__meson} \\\
+ --buildtype=plain \\\
+ --prefix=%{_prefix} \\\
+ --libdir=%{_libdir} \\\
+ --libexecdir=%{_libexecdir} \\\
+ --bindir=%{_bindir} \\\
+ --includedir=%{_includedir} \\\
+ --datadir=%{_datadir} \\\
+ --mandir=%{_mandir} \\\
+ --localedir=%{_datadir}/locale \\\
+ --sysconfdir=%{_sysconfdir} \\\
+ --localstatedir=%{_localstatedir} \\\
+ %{_vpath_srcdir} %{_vpath_builddir} \\\
%{nil}
%meson_build \
- %ninja_build -C %{__builddir}
+ %ninja_build -C %{_vpath_builddir}
%meson_install \
- %ninja_install -C %{__builddir}
+ %ninja_install -C %{_vpath_builddir}
%meson_test \
- %ninja_test -C %{__builddir}
+ %ninja_test -C %{_vpath_builddir}