From df1b72d3af290d3d15d0501f2a116f685aee3c0c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ralf=20Cors=C3=A9pius?= Date: Thu, 13 Sep 2007 14:51:46 +0200 Subject: [PATCH] Process platform in Makefile instead of configure. --- Makefile.am | 8 ++++++++ configure.ac | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index ceae460..7c28030 100644 --- a/Makefile.am +++ b/Makefile.am @@ -132,6 +132,14 @@ macros: $(top_srcdir)/macros.in CLEANFILES += macros.tmp macros EXTRA_DIST += macros.in +platform: $(top_srcdir)/platform.in + @sed \ + -e "s,[@]RPMCONFIGDIR[@],$(rpmconfigdir),g" \ + < $(top_srcdir)/platform.in > platform.tmp \ + && ( cd $(top_builddir) && ./config.status --file=${subdir}/platform:${subdir}/platform.tmp ) +CLEANFILES += platform.tmp platform +EXTRA_DIST += platform.in + pkgsrcdir = $(prefix)/src/$(RPMCANONVENDOR) pkgsrc_RPMSdir = $(pkgsrcdir)/RPMS pkgsrc_RPMS_DATA = diff --git a/configure.ac b/configure.ac index 6f68b4e..afb295a 100644 --- a/configure.ac +++ b/configure.ac @@ -1067,7 +1067,7 @@ AC_CONFIG_SUBDIRS(db3) AC_PATH_PROG(AUTOM4TE,autom4te,:) -AC_CONFIG_FILES([ Doxyfile Makefile platform rpm.pc +AC_CONFIG_FILES([ Doxyfile Makefile rpm.pc rpmio/Makefile rpmdb/Makefile lib/Makefile build/Makefile po/Makefile.in scripts/Makefile misc/Makefile -- 2.7.4