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:
parent
b9ca038850
commit
cd87be1595
2 changed files with 6 additions and 6 deletions
|
|
@ -54,12 +54,12 @@ EXTRA_DIST = $(srcdir)/libspot.pc.in
|
||||||
pkgconfigdir = $(libdir)/pkgconfig
|
pkgconfigdir = $(libdir)/pkgconfig
|
||||||
nodist_pkgconfig_DATA = libspot.pc
|
nodist_pkgconfig_DATA = libspot.pc
|
||||||
|
|
||||||
libspot.pc: $(srcdir)/libspot.pc.in
|
libspot.pc: $(srcdir)/libspot.pc.in Makefile
|
||||||
sed -e 's![@]prefix[@]!$(prefix)!g' \
|
sed -e 's![@]prefix[@]!$(prefix)!g' \
|
||||||
-e 's![@]exec_prefix[@]!$(exec_prefix)!g' \
|
-e 's![@]exec_prefix[@]!$(exec_prefix)!g' \
|
||||||
-e 's![@]includedir[@]!$(includedir)!g' \
|
-e 's![@]includedir[@]!$(includedir)!g' \
|
||||||
-e 's![@]libdir[@]!$(libdir)!g' \
|
-e 's![@]libdir[@]!$(libdir)!g' \
|
||||||
-e 's![@]PACKAGE_VERSION[@]!$(PACKAGE_VERSION)!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
|
||||||
|
|
|
||||||
|
|
@ -40,12 +40,12 @@ EXTRA_DIST = $(srcdir)/libspotltsmin.pc.in
|
||||||
pkgconfigdir = $(libdir)/pkgconfig
|
pkgconfigdir = $(libdir)/pkgconfig
|
||||||
nodist_pkgconfig_DATA = libspotltsmin.pc
|
nodist_pkgconfig_DATA = libspotltsmin.pc
|
||||||
|
|
||||||
libspotltsmin.pc: $(srcdir)/libspotltsmin.pc.in
|
libspotltsmin.pc: $(srcdir)/libspotltsmin.pc.in Makefile
|
||||||
sed -e 's![@]prefix[@]!$(prefix)!g' \
|
sed -e 's![@]prefix[@]!$(prefix)!g' \
|
||||||
-e 's![@]exec_prefix[@]!$(exec_prefix)!g' \
|
-e 's![@]exec_prefix[@]!$(exec_prefix)!g' \
|
||||||
-e 's![@]includedir[@]!$(includedir)!g' \
|
-e 's![@]includedir[@]!$(includedir)!g' \
|
||||||
-e 's![@]libdir[@]!$(libdir)!g' \
|
-e 's![@]libdir[@]!$(libdir)!g' \
|
||||||
-e 's![@]PACKAGE_VERSION[@]!$(PACKAGE_VERSION)!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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue