]> git.meshlink.io Git - catta/blob - avahi-ui-sharp/Makefile.am
only build avahi-ui-sharp if we have gtk
[catta] / avahi-ui-sharp / Makefile.am
1 # $Id: Makefile.am 1251 2006-08-21 23:31:59Z lennart $
2
3 # This file is part of avahi.
4 #
5 # avahi is free software; you can redistribute it and/or modify it
6 # under the terms of the GNU Lesser General Public License as
7 # published by the Free Software Foundation; either version 2 of the
8 # License, or (at your option) any later version.
9 #
10 # avahi is distributed in the hope that it will be useful, but WITHOUT
11 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
12 # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
13 # License for more details.
14 #
15 # You should have received a copy of the GNU Lesser General Public
16 # License along with avahi; if not, write to the Free Software
17 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
18 # USA.
19
20 ASSEMBLY = avahi-ui-sharp.dll
21
22 CLEANFILES = $(ASSEMBLY) $(ASSEMBLY).mdb $(ASSEMBLY).config bssh.exe
23
24 AVAHISOURCES =                          \
25         $(srcdir)/ServiceDialog.cs
26
27 EXTRA_DIST =                                    \
28         $(AVAHISOURCES)                         \
29         $(srcdir)/avahi-ui-sharp-docs.source    \
30         $(srcdir)/en/*.xml                      \
31         $(srcdir)/en/*/*.xml                    \
32         $(srcdir)/gencfg.sh                     \
33         $(srcdir)/$(ASSEMBLY).config.in         \
34         $(srcdir)/bssh.cs
35
36 $(ASSEMBLY): $(AVAHISOURCES)
37         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
38
39 $(ASSEMBLY).config: $(ASSEMBLY).config.in
40         $(srcdir)/gencfg.sh $(top_builddir)/avahi-common/libavahi-common.la < $< > $@
41
42 bssh.exe: $(srcdir)/bssh.cs $(ASSEMBLY)
43         mcs -out:$@ $(srcdir)/bssh.cs -r:./avahi-ui-sharp.dll -r:../avahi-sharp/avahi-sharp.dll -pkg:gtk-sharp-2.0 -r:Mono.Posix
44
45 if HAVE_MONO
46 if HAVE_DBUS
47 if HAVE_GTK
48 all: $(ASSEMBLY) $(ASSEMBLY).config bssh.exe
49
50 if HAVE_MONODOC
51 update-docs: $(ASSEMBLY)
52         $(MONODOCER) -assembly:$(ASSEMBLY) -path:en
53
54 avahi-ui-sharp-docs.zip: avahi-ui-sharp-docs.tree
55
56 avahi-ui-sharp-docs.tree: $(srcdir)/en/*/*
57         $(MDASSEMBLER) --out avahi-ui-sharp-docs --ecma $(srcdir)/en
58
59 monodocdir = $(MONODOC_DIR)
60 monodoc_DATA = avahi-ui-sharp-docs.zip avahi-ui-sharp-docs.tree avahi-ui-sharp-docs.source
61
62 endif
63
64 install-data-hook: $(ASSEMBLY)
65         $(GACUTIL) /i $(ASSEMBLY) /package avahi-ui-sharp /gacdir $(libdir) /root $(DESTDIR)$(libdir)
66
67 uninstall-hook: $(ASSEMBLY)
68         $(GACUTIL) /u avahi-ui-sharp /package avahi-ui-sharp /gacdir $(libdir) /root $(DESTDIR)$(libdir)
69
70 endif
71 endif
72 endif