diff options
-rw-r--r-- | Makefile.am | 15 | ||||
-rw-r--r-- | avahi-sharp.pc.in (renamed from avahi-sharp/avahi-sharp.pc.in) | 0 | ||||
-rw-r--r-- | avahi-sharp/Makefile.am | 10 |
3 files changed, 15 insertions, 10 deletions
diff --git a/Makefile.am b/Makefile.am index ace4a05..f3bff8f 100644 --- a/Makefile.am +++ b/Makefile.am @@ -40,7 +40,8 @@ EXTRA_DIST = \ 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 \ @@ -144,6 +145,18 @@ CLEANFILES += avahi-qt4.pc 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) diff --git a/avahi-sharp/avahi-sharp.pc.in b/avahi-sharp.pc.in index dd067f3..dd067f3 100644 --- a/avahi-sharp/avahi-sharp.pc.in +++ b/avahi-sharp.pc.in diff --git a/avahi-sharp/Makefile.am b/avahi-sharp/Makefile.am index e912715..bd3e7e1 100644 --- a/avahi-sharp/Makefile.am +++ b/avahi-sharp/Makefile.am @@ -3,7 +3,7 @@ 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 \ @@ -24,14 +24,6 @@ $(ASSEMBLY): $(AVAHISOURCES) 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 |