fix libspot.pc and libspotltsmin.pc generation

Report from Jeroen Meijer.

* spot/Makefile.am (libspot.pc): Depends on Makefile.  Use a
temporary.  Declare in CLEANFILES instead of DISTCLEANFILES.
* spot/ltsmin/Makefile.am (libspotltsmin.pc): Likewise.
This commit is contained in:
Alexandre Duret-Lutz 2017-05-04 11:03:53 +02:00
parent b9ca038850
commit cd87be1595
2 changed files with 6 additions and 6 deletions

View file

@ -54,12 +54,12 @@ EXTRA_DIST = $(srcdir)/libspot.pc.in
pkgconfigdir = $(libdir)/pkgconfig
nodist_pkgconfig_DATA = libspot.pc
libspot.pc: $(srcdir)/libspot.pc.in
libspot.pc: $(srcdir)/libspot.pc.in Makefile
sed -e 's![@]prefix[@]!$(prefix)!g' \
-e 's![@]exec_prefix[@]!$(exec_prefix)!g' \
-e 's![@]includedir[@]!$(includedir)!g' \
-e 's![@]libdir[@]!$(libdir)!g' \
-e 's![@]PACKAGE_VERSION[@]!$(PACKAGE_VERSION)!g' \
$(srcdir)/libspot.pc.in > $@
$(srcdir)/libspot.pc.in > $@.tmp && mv $@.tmp $@
DISTCLEANFILES = libspot.pc
CLEANFILES = libspot.pc

View file

@ -40,12 +40,12 @@ EXTRA_DIST = $(srcdir)/libspotltsmin.pc.in
pkgconfigdir = $(libdir)/pkgconfig
nodist_pkgconfig_DATA = libspotltsmin.pc
libspotltsmin.pc: $(srcdir)/libspotltsmin.pc.in
libspotltsmin.pc: $(srcdir)/libspotltsmin.pc.in Makefile
sed -e 's![@]prefix[@]!$(prefix)!g' \
-e 's![@]exec_prefix[@]!$(exec_prefix)!g' \
-e 's![@]includedir[@]!$(includedir)!g' \
-e 's![@]libdir[@]!$(libdir)!g' \
-e 's![@]PACKAGE_VERSION[@]!$(PACKAGE_VERSION)!g' \
$(srcdir)/libspotltsmin.pc.in > $@
$(srcdir)/libspotltsmin.pc.in > $@.tmp && mv $@.tmp $@
DISTCLEANFILES = libspotltsmin.pc
CLEANFILES = libspotltsmin.pc