diff options
author | Ralf Corsépius <corsepiu@fedoraproject.org> | 2007-08-28 13:19:37 +0200 |
---|---|---|
committer | Ralf Corsépius <corsepiu@fedoraproject.org> | 2007-08-28 13:19:37 +0200 |
commit | 092122ca8458f020fb20cf217efa67b1807ec8bb (patch) | |
tree | dcfda434fa1151a7692c941c3e014a08e72dda79 | |
parent | 27aa05cafc5ee733c2966fd3b1982924b60cb023 (diff) | |
download | rpm-092122ca8458f020fb20cf217efa67b1807ec8bb.tar.gz rpm-092122ca8458f020fb20cf217efa67b1807ec8bb.tar.bz2 rpm-092122ca8458f020fb20cf217efa67b1807ec8bb.zip |
Create rpmrc from inside of Makefile.
-rw-r--r-- | Makefile.am | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am index 37dd6c84a..a0f8bf973 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 \ |