- we're just mangling varprefix to localstatedir anyway, might as well
just avoid that little extra trouble...
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
#
%_usr @prefix@
%_usrsrc %{_usr}/src
-%_var @varprefix@
+%_var @localstatedir@
#==============================================================================
# ---- Generally useful path macros.