Move generating rpmpopt-@VERSION@ from configure into Makefile.

This commit is contained in:
Ralf Corsépius 2007-09-14 05:21:39 +02:00
parent ede9e90272
commit 91a33fbdc5
2 changed files with 8 additions and 1 deletions

View File

@ -148,6 +148,14 @@ rpm.pc: $(top_srcdir)/rpm.pc.in
CLEANFILES += rpm.pc.tmp rpm.pc
EXTRA_DIST += rpm.pc.in
rpmpopt-@VERSION@: $(top_srcdir)/rpmpopt.in
@sed \
-e "s,[@]RPMCONFIGDIR[@],$(rpmconfigdir),g" \
< $(top_srcdir)/rpmpopt.in > rpmpopt-@VERSION@.tmp \
&& ( cd $(top_builddir) && ./config.status --file=${subdir}/rpmpopt-@VERSION@:${subdir}/rpmpopt-@VERSION@.tmp )
CLEANFILES += rpmpopt-@VERSION@.tmp rpmpopt-@VERSION@
EXTRA_DIST += rpmpopt.in
pkgsrcdir = $(prefix)/src/$(RPMCANONVENDOR)
pkgsrc_RPMSdir = $(pkgsrcdir)/RPMS
pkgsrc_RPMS_DATA =

View File

@ -1076,5 +1076,4 @@ AC_CONFIG_FILES([ Doxyfile Makefile
lua/Makefile
tests/Makefile
])
AC_CONFIG_FILES([rpmpopt-${VERSION}:rpmpopt.in],,[VERSION=${VERSION}])
AC_OUTPUT