]> git.meshlink.io Git - catta/commitdiff
build pkg-config for compat layers only when the compat layers are enabled
authorLennart Poettering <lennart@poettering.net>
Sat, 19 Nov 2005 12:33:00 +0000 (12:33 +0000)
committerLennart Poettering <lennart@poettering.net>
Sat, 19 Nov 2005 12:33:00 +0000 (12:33 +0000)
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1012 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

Makefile.am
avahi-sharp/Makefile.am

index f2e3b39ddbde0bcf109ecfa9347384b58303cb04..5690c5b567cefd4f47be51ae20a547d26e04b3ab 100644 (file)
@@ -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)
index 778f8826b923aec5e69a3f89eba0f994b47b079f..6f106677a4710fd7f4a2e853cd4f20a2b45264ce 100644 (file)
@@ -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