1
## Makefile for the gettext-runtime/intl-csharp subdirectory of GNU gettext
2
## Copyright (C) 2003 Free Software Foundation, Inc.
4
## This program is free software; you can redistribute it and/or modify
5
## it under the terms of the GNU General Public License as published by
6
## the Free Software Foundation; either version 2, or (at your option)
9
## This program is distributed in the hope that it will be useful,
10
## but WITHOUT ANY WARRANTY; without even the implied warranty of
11
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
## GNU General Public License for more details.
14
## You should have received a copy of the GNU General Public License
15
## along with this program; if not, write to the Free Software
16
## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18
## Process this file with automake to produce Makefile.in.
20
AUTOMAKE_OPTIONS = 1.2 gnits
29
CSHARPCOMP = $(SHELL) ../lib/csharpcomp.sh
30
CSHARPCOMPFLAGS = -O -g
33
all-local: all-dll all-doc
34
install-data-local: install-dll install-doc
35
installdirs-local: installdirs-dll installdirs-doc
36
uninstall-local: uninstall-dll uninstall-doc
39
# Special rules for C# compilation.
41
all-dll: all-dll-@BUILDCSHARP@
43
all-dll-yes: GNU.Gettext.dll
45
GNU.Gettext.dll: intl.cs
46
$(CSHARPCOMP) $(CSHARPCOMPFLAGS) -o $@ $(srcdir)/intl.cs
50
CLEANFILES += GNU.Gettext.dll
52
install-dll: install-dll-@BUILDCSHARP@
54
$(mkinstalldirs) $(DESTDIR)$(libdir)
55
install-dll-yes: all-dll-yes
56
$(mkinstalldirs) $(DESTDIR)$(libdir)
57
$(INSTALL_DATA) GNU.Gettext.dll $(DESTDIR)$(libdir)/GNU.Gettext.dll
60
$(mkinstalldirs) $(DESTDIR)$(libdir)
63
$(RM) $(DESTDIR)$(libdir)/GNU.Gettext.dll
66
# C# reference documentation. Requires the pnet tools.
69
test -d csharpdoc || mkdir csharpdoc
70
csdoc -flibrary-name=GNU.Gettext intl.cs | \
71
csdoc2html -o csharpdoc -fmulti-file -fframes -fcombine-members -fno-namespace-directories -
73
intl-csharp.texi: intl.cs
74
csdoc -flibrary-name=GNU.Gettext intl.cs | \
75
csdoc2texi -fembedded -fparent='C#' -o $@ -
77
all-doc: $(srcdir)/csharpdoc/index.html
80
csharpdoc/index.html \
81
csharpdoc/namespaces.html \
82
csharpdoc/begin.html \
83
csharpdoc/GNU_Gettext.html \
84
csharpdoc/GNU_Gettext_GettextResourceManager.html \
85
csharpdoc/GNU_Gettext_GettextResourceSet.html
87
EXTRA_DIST += $(DOC_FILES)
90
$(mkinstalldirs) $(DESTDIR)$(htmldir)/csharpdoc
91
@for f in $(DOC_FILES); do \
92
echo "$(INSTALL_DATA) $(srcdir)/$$f $(DESTDIR)$(htmldir)/$$f"; \
93
$(INSTALL_DATA) $(srcdir)/$$f $(DESTDIR)$(htmldir)/$$f; \
97
$(mkinstalldirs) $(DESTDIR)$(htmldir)/csharpdoc
100
@for f in $(DOC_FILES); do \
101
echo "$(RM) $(DESTDIR)$(htmldir)/$$f"; \
102
$(RM) $(DESTDIR)$(htmldir)/$$f; \