Move generating rpmpopt-@VERSION@ from configure into Makefile.
This commit is contained in:
parent
ede9e90272
commit
91a33fbdc5
|
@ -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 =
|
||||
|
|
|
@ -1076,5 +1076,4 @@ AC_CONFIG_FILES([ Doxyfile Makefile
|
|||
lua/Makefile
|
||||
tests/Makefile
|
||||
])
|
||||
AC_CONFIG_FILES([rpmpopt-${VERSION}:rpmpopt.in],,[VERSION=${VERSION}])
|
||||
AC_OUTPUT
|
||||
|
|
Loading…
Reference in New Issue