summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.am7
-rw-r--r--macros.in2
2 files changed, 3 insertions, 6 deletions
diff --git a/Makefile.am b/Makefile.am
index 74f103183..b509b6082 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -150,11 +150,8 @@ EXTRA_DIST += rpmrc.in
rpmconfig_DATA += macros
macros: $(top_srcdir)/macros.in
- @$(SED) \
- -e "s,[@]varprefix[@],$(localstatedir),g" \
- < $(top_srcdir)/macros.in > macros.tmp \
- && ( cd $(top_builddir) && ./config.status --file=${subdir}/macros:${subdir}/macros.tmp )
-CLEANFILES += macros.tmp macros
+ ( cd $(top_builddir) && ./config.status --file=${subdir}/macros:${subdir}/macros.in )
+CLEANFILES += macros
EXTRA_DIST += macros.in
noinst_DATA = platform
diff --git a/macros.in b/macros.in
index bb34ca566..377c57d51 100644
--- a/macros.in
+++ b/macros.in
@@ -26,7 +26,7 @@
#
%_usr @prefix@
%_usrsrc %{_usr}/src
-%_var @varprefix@
+%_var @localstatedir@
#==============================================================================
# ---- Generally useful path macros.