avahi-client.pc.in \
avahi-glib.pc.in \
avahi-qt3.pc.in \
- avahi-qt4.pc.in
+ avahi-qt4.pc.in \
+ avahi-sharp.pc.in
SUBDIRS = \
common \
endif
+if HAVE_MONO
+
+pkgconfig_DATA += avahi-sharp.pc
+
+avahi-sharp.pc: avahi-sharp.pc.in
+ sed -e 's,@prefix\@,$(prefix),g' \
+ -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' \
+ -e 's,@libdir\@,$(libdir),g' $< > $@
+
+CLEANFILES += avahi-sharp.pc
+
+endif
MOSTLYCLEANFILES = $(DX_CLEANFILES)
--- /dev/null
+prefix=@prefix@
+exec_prefix=@prefix@
+libdir=@libdir@
+
+Name: avahi-sharp
+Description: Mono bindings for the Avahi mDNS/DNS-SD stack
+Version: @PACKAGE_VERSION@
+Libs: -r:${libdir}/mono/gac/avahi-sharp/avahi-sharp.dll
ASSEMBLY = avahi-sharp.dll
CLEANFILES = $(ASSEMBLY) $(ASSEMBLY).mdb
-EXTRA_DIST = $(AVAHISOURCES) avahi.snk avahi-sharp.pc.in
+EXTRA_DIST = $(AVAHISOURCES) avahi.snk
AVAHISOURCES = \
$(srcdir)/AssemblyInfo.cs \
if HAVE_MONO
all: $(ASSEMBLY)
-pkgcfgdir = $(libdir)/pkgconfig
-pkgcfg_DATA = avahi-sharp.pc
-
-avahi-sharp.pc: avahi-sharp.pc.in
- sed -e 's,@prefix\@,$(prefix),g' \
- -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' \
- -e 's,@libdir\@,$(libdir),g' $< > $@
-
install-data-hook:
$(GACUTIL) /i $(ASSEMBLY) /package avahi-sharp /gacdir $(libdir) /root $(DESTDIR)$(libdir)
endif
+++ /dev/null
-prefix=@prefix@
-exec_prefix=@prefix@
-libdir=@libdir@
-
-Name: avahi-sharp
-Description: Mono bindings for the Avahi mDNS/DNS-SD stack
-Version: @PACKAGE_VERSION@
-Libs: -r:${libdir}/mono/gac/avahi-sharp/avahi-sharp.dll