Kill the last remaining varprefix
authorPanu Matilainen <pmatilai@redhat.com>
Fri, 21 Nov 2008 14:13:03 +0000 (16:13 +0200)
committerPanu Matilainen <pmatilai@redhat.com>
Fri, 21 Nov 2008 15:59:33 +0000 (17:59 +0200)
- we're just mangling varprefix to localstatedir anyway, might as well
  just avoid that little extra trouble...

Makefile.am
macros.in

index 74f1031..b509b60 100644 (file)
@@ -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
index bb34ca5..377c57d 100644 (file)
--- a/macros.in
+++ b/macros.in
@@ -26,7 +26,7 @@
 #
 %_usr                  @prefix@
 %_usrsrc               %{_usr}/src
-%_var                  @varprefix@
+%_var                  @localstatedir@
 
 #==============================================================================
 # ---- Generally useful path macros.