From 1b1e2692e498d7bab5183c344887f83c0a94e4bb Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Sat, 19 Nov 2005 12:33:00 +0000 Subject: [PATCH] build pkg-config for compat layers only when the compat layers are enabled git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1012 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe --- Makefile.am | 28 +++++++++++++++++++++++----- avahi-sharp/Makefile.am | 3 +++ 2 files changed, 26 insertions(+), 5 deletions(-) diff --git a/Makefile.am b/Makefile.am index f2e3b39..5690c5b 100644 --- a/Makefile.am +++ b/Makefile.am @@ -105,21 +105,37 @@ CLEANFILES = avahi-core.pc if HAVE_DBUS -pkgconfig_DATA += avahi-client.pc avahi-compat-libdns_sd.pc avahi-compat-howl.pc +pkgconfig_DATA += avahi-client.pc avahi-client.pc: avahi-client.pc.in sed -e 's,@prefix\@,$(prefix),g' \ -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' $< > $@ -avahi-compat-libdns_sd.pc: avahi-compat-libdns_sd.pc.in - sed -e 's,@prefix\@,$(prefix),g' \ - -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' $< > $@ +CLEANFILES += avahi-client.pc + +if ENABLE_COMPAT_HOWL + +pkgconfig_DATA += avahi-compat-howl.pc avahi-compat-howl.pc: avahi-compat-howl.pc.in sed -e 's,@prefix\@,$(prefix),g' \ -e 's,@HOWL_COMPAT_VERSION\@,$(HOWL_COMPAT_VERSION),g' $< > $@ -CLEANFILES += avahi-client.pc avahi-compat-libdns_sd.pc avahi-compat-howl.pc +CLEANFILES += avahi-compat-howl.pc + +endif + +if ENABLE_COMPAT_LIBDNS_SD + +pkgconfig_DATA += avahi-compat-libdns_sd.pc + +avahi-compat-libdns_sd.pc: avahi-compat-libdns_sd.pc.in + sed -e 's,@prefix\@,$(prefix),g' \ + -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' $< > $@ + +CLEANFILES += avahi-compat-libdns_sd.pc + +endif endif @@ -160,6 +176,7 @@ CLEANFILES += avahi-qt4.pc endif if HAVE_MONO +if HAVE_DBUS pkgconfig_DATA += avahi-sharp.pc @@ -170,6 +187,7 @@ avahi-sharp.pc: avahi-sharp.pc.in CLEANFILES += avahi-sharp.pc +endif endif MOSTLYCLEANFILES = $(DX_CLEANFILES) diff --git a/avahi-sharp/Makefile.am b/avahi-sharp/Makefile.am index 778f882..6f10667 100644 --- a/avahi-sharp/Makefile.am +++ b/avahi-sharp/Makefile.am @@ -56,6 +56,7 @@ $(ASSEMBLY).config: $(ASSEMBLY).config.in $(top_builddir)/avahi-common/libavahi-common.la < $< > $@ if HAVE_MONO +if HAVE_DBUS all: $(ASSEMBLY) $(ASSEMBLY).config if HAVE_MONODOC @@ -75,4 +76,6 @@ install-data-hook: $(ASSEMBLY) uninstall-hook: $(ASSEMBLY) $(GACUTIL) /u avahi-sharp /package avahi-sharp /gacdir $(libdir) /root $(DESTDIR)$(libdir) + +endif endif -- 2.39.5