1 # This file is part of avahi.
3 # avahi is free software; you can redistribute it and/or modify it
4 # under the terms of the GNU Lesser General Public License as
5 # published by the Free Software Foundation; either version 2 of the
6 # License, or (at your option) any later version.
8 # avahi is distributed in the hope that it will be useful, but WITHOUT
9 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
10 # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
11 # License for more details.
13 # You should have received a copy of the GNU Lesser General Public
14 # License along with avahi; if not, write to the Free Software
15 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
18 ASSEMBLY = avahi-ui-sharp.dll
20 CLEANFILES = $(ASSEMBLY) $(ASSEMBLY).mdb $(ASSEMBLY).config bssh.exe
23 $(srcdir)/ServiceDialog.cs
27 $(srcdir)/avahi-ui-sharp-docs.source \
29 $(srcdir)/en/*/*.xml \
31 $(srcdir)/$(ASSEMBLY).config.in \
34 $(ASSEMBLY): $(AVAHISOURCES)
35 $(AM_V_GEN)mcs -keyfile:$(top_srcdir)/avahi-sharp/avahi.snk -target:library -out:$@ -debug $(AVAHISOURCES) -pkg:gtk-sharp-2.0 -r:$(top_builddir)/avahi-sharp/avahi-sharp.dll -r:Mono.Posix
37 $(ASSEMBLY).config: $(ASSEMBLY).config.in
38 $(AM_V_GEN)$(srcdir)/gencfg.sh $(top_builddir)/avahi-common/libavahi-common.la < $< > $@
40 bssh.exe: $(srcdir)/bssh.cs $(ASSEMBLY)
41 $(AM_V_GEN)mcs -out:$@ $(srcdir)/bssh.cs -r:./avahi-ui-sharp.dll -r:../avahi-sharp/avahi-sharp.dll -pkg:gtk-sharp-2.0 -r:Mono.Posix
46 all: $(ASSEMBLY) $(ASSEMBLY).config bssh.exe
49 update-docs: $(ASSEMBLY)
50 $(AM_V_GEN)$(MONODOCER) -assembly:$(ASSEMBLY) -path:en
52 avahi-ui-sharp-docs.zip: avahi-ui-sharp-docs.tree
54 avahi-ui-sharp-docs.tree: $(srcdir)/en/*/*
55 $(AM_V_GEN)$(MDASSEMBLER) --out avahi-ui-sharp-docs --ecma $(srcdir)/en
57 monodocdir = $(MONODOC_DIR)
58 monodoc_DATA = avahi-ui-sharp-docs.zip avahi-ui-sharp-docs.tree avahi-ui-sharp-docs.source
62 install-data-hook: $(ASSEMBLY)
63 $(GACUTIL) /i $(ASSEMBLY) /package avahi-ui-sharp /gacdir $(libdir) /root $(DESTDIR)$(libdir)
65 uninstall-hook: $(ASSEMBLY)
66 $(GACUTIL) /u avahi-ui-sharp /package avahi-ui-sharp /gacdir $(libdir) /root $(DESTDIR)$(libdir)