X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=avahi-sharp%2FMakefile.am;h=c0866df0c6d26ea3a4ef2a022f1b6f098965a7fc;hb=5af9f469d85a9281bc5484e9f5a8740751591dfe;hp=a82f4e69271b33e04d13777ad80666c4c993c74a;hpb=ba12decc4413dedf22c06545d1ec5938efa8954a;p=catta diff --git a/avahi-sharp/Makefile.am b/avahi-sharp/Makefile.am index a82f4e6..c0866df 100644 --- a/avahi-sharp/Makefile.am +++ b/avahi-sharp/Makefile.am @@ -1,8 +1,35 @@ +# $Id$ +# This file is part of avahi. +# +# avahi is free software; you can redistribute it and/or modify it +# under the terms of the GNU Lesser General Public License as +# published by the Free Software Foundation; either version 2 of the +# License, or (at your option) any later version. +# +# avahi is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY +# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public +# License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with avahi; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 +# USA. -all: avahi-sharp.dll +ASSEMBLY = avahi-sharp.dll + +CLEANFILES = $(ASSEMBLY) $(ASSEMBLY).mdb +EXTRA_DIST = \ + $(AVAHISOURCES) \ + avahi.snk \ + avahi-sharp.dll.config \ + avahi-sharp-docs.source \ + en/*.xml \ + en/*/*.xml AVAHISOURCES = \ + $(srcdir)/AssemblyInfo.cs \ $(srcdir)/AddressResolver.cs \ $(srcdir)/Client.cs \ $(srcdir)/ClientException.cs \ @@ -12,9 +39,29 @@ AVAHISOURCES = \ $(srcdir)/ServiceBrowser.cs \ $(srcdir)/ServiceResolver.cs \ $(srcdir)/ServiceTypeBrowser.cs \ - Utility.cs + $(srcdir)/Utility.cs + +$(ASSEMBLY): $(AVAHISOURCES) + mcs -keyfile:$(srcdir)/avahi.snk -target:library -out:$@ -debug $(AVAHISOURCES) -r:Mono.Posix + +if HAVE_MONO +all: $(ASSEMBLY) + +if HAVE_MONODOC +update-docs: $(ASSEMBLY) + $(MONODOCER) -assembly:$(ASSEMBLY) -path:en + +avahi-sharp-docs.zip: $(srcdir)/en/*/* + $(MDASSEMBLER) --out avahi-sharp-docs --ecma $(srcdir)/en + +docdir = $(MONODOC_DIR) +doc_DATA = avahi-sharp-docs.zip avahi-sharp-docs.tree avahi-sharp-docs.source + +endif -avahi-sharp.dll: $(AVAHISOURCES) - mcs -target:library -o $@ -debug $(AVAHISOURCES) -r:Mono.Posix +install-data-hook: $(ASSEMBLY) + $(GACUTIL) /i $(ASSEMBLY) /package avahi-sharp /gacdir $(libdir) /root $(DESTDIR)$(libdir) -CLEANFILES = avahi-sharp.dll avahi-sharp.dll.mdb +uninstall-hook: $(ASSEMBLY) + $(GACUTIL) /u avahi-sharp /package avahi-sharp /gacdir $(libdir) /root $(DESTDIR)$(libdir) +endif