From 092122ca8458f020fb20cf217efa67b1807ec8bb Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ralf=20Cors=C3=A9pius?= Date: Tue, 28 Aug 2007 13:19:37 +0200 Subject: [PATCH] Create rpmrc from inside of Makefile. --- Makefile.am | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Makefile.am b/Makefile.am index 37dd6c8..a0f8bf9 100644 --- a/Makefile.am +++ b/Makefile.am @@ -2,6 +2,7 @@ LINT = splint +CLEANFILES = EXTRA_DIST = CHANGES ChangeLog CREDITS Doxyheader GROUPS INSTALL \ autodeps autogen.sh \ db db3/configure installplatform platform* @@ -70,6 +71,14 @@ rpm2cpio_SOURCES = rpm2cpio.c debug.h system.h rpm2cpio_LDFLAGS = @WITH_LIBELF_LIB@ @WITH_BEECRYPT_LIB@ rpm2cpio_LDADD = lib/librpm.la rpmdb/librpmdb.la rpmio/librpmio.la @WITH_POPT_LIB@ @WITH_ZLIB_LIB@ +rpmrc: $(top_srcdir)/rpmrc.in + @sed \ + -e "s,[@]SYSCONFIGDIR[@],$(sysconfdir)/rpm,g" \ + < $(top_srcdir)/rpmrc.in > rpmrc.tmp \ + && ( cd $(top_builddir) && ./config.status --file=${subdir}/rpmrc:${subdir}/rpmrc.tmp ) +CLEANFILES += rpmrc.tmp rpmrc +EXTRA_DIST += rpmrc.in + .PHONY: splint splint: splint \ -- 2.7.4