summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRalf Corsépius <corsepiu@fedoraproject.org>2007-09-13 14:51:46 +0200
committerRalf Corsépius <corsepiu@fedoraproject.org>2007-09-13 14:51:46 +0200
commitdf1b72d3af290d3d15d0501f2a116f685aee3c0c (patch)
tree6eff206abdcfee00195040c068fb4db8373b022b
parenta019b8bf9670eb1d5b374defa646a32b47a0e097 (diff)
downloadrpm-df1b72d3af290d3d15d0501f2a116f685aee3c0c.tar.gz
rpm-df1b72d3af290d3d15d0501f2a116f685aee3c0c.tar.bz2
rpm-df1b72d3af290d3d15d0501f2a116f685aee3c0c.zip
Process platform in Makefile instead of configure.
-rw-r--r--Makefile.am8
-rw-r--r--configure.ac2
2 files changed, 9 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index ceae46027..7c2803045 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 6f68b4e64..afb295ac6 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