Home | History | Annotate | Download | only in avahi-ui-sharp
      1 # This file is part of avahi.
      2 #
      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.
      7 #
      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.
     12 #
     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
     16 # USA.
     17 
     18 ASSEMBLY = avahi-ui-sharp.dll
     19 
     20 CLEANFILES = $(ASSEMBLY) $(ASSEMBLY).mdb $(ASSEMBLY).config bssh.exe
     21 
     22 AVAHISOURCES = 				\
     23 	$(srcdir)/ServiceDialog.cs
     24 
     25 EXTRA_DIST =					\
     26 	$(AVAHISOURCES)				\
     27 	$(srcdir)/avahi-ui-sharp-docs.source	\
     28 	$(srcdir)/en/*.xml			\
     29 	$(srcdir)/en/*/*.xml			\
     30 	$(srcdir)/gencfg.sh                     \
     31 	$(srcdir)/$(ASSEMBLY).config.in         \
     32 	$(srcdir)/bssh.cs
     33 
     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
     36 
     37 $(ASSEMBLY).config: $(ASSEMBLY).config.in
     38 	$(AM_V_GEN)$(srcdir)/gencfg.sh $(top_builddir)/avahi-common/libavahi-common.la < $< > $@
     39 
     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
     42 
     43 if HAVE_MONO
     44 if HAVE_DBUS
     45 if HAVE_GTK
     46 all: $(ASSEMBLY) $(ASSEMBLY).config bssh.exe
     47 
     48 if HAVE_MONODOC
     49 update-docs: $(ASSEMBLY)
     50 	$(AM_V_GEN)$(MONODOCER) -assembly:$(ASSEMBLY) -path:en
     51 
     52 avahi-ui-sharp-docs.zip: avahi-ui-sharp-docs.tree
     53 
     54 avahi-ui-sharp-docs.tree: $(srcdir)/en/*/*
     55 	$(AM_V_GEN)$(MDASSEMBLER) --out avahi-ui-sharp-docs --ecma $(srcdir)/en
     56 
     57 monodocdir = $(MONODOC_DIR)
     58 monodoc_DATA = avahi-ui-sharp-docs.zip avahi-ui-sharp-docs.tree avahi-ui-sharp-docs.source
     59 
     60 endif
     61 
     62 install-data-hook: $(ASSEMBLY)
     63 	$(GACUTIL) /i $(ASSEMBLY) /package avahi-ui-sharp /gacdir $(libdir) /root $(DESTDIR)$(libdir)
     64 
     65 uninstall-hook: $(ASSEMBLY)
     66 	$(GACUTIL) /u avahi-ui-sharp /package avahi-ui-sharp /gacdir $(libdir) /root $(DESTDIR)$(libdir)
     67 
     68 endif
     69 endif
     70 endif
     71