1 ## Makefile for the gettext-runtime/intl-csharp subdirectory of GNU gettext
2 ## Copyright (C) 2003, 2006 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 3 of the License, or
7 ## (at your option) any later version.
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, see <http://www.gnu.org/licenses/>.
17 ## Process this file with automake to produce Makefile.in.
19 AUTOMAKE_OPTIONS = 1.2 gnits
25 CSHARPCOMP = $(SHELL) ../csharpcomp.sh
26 CSHARPCOMPFLAGS = @CSHARPCOMPFLAGS@
29 all-local: all-dll all-doc
30 install-data-local: install-dll install-doc
31 installdirs-local: installdirs-dll installdirs-doc
32 uninstall-local: uninstall-dll uninstall-doc
35 # Special rules for C# compilation.
37 all-dll: all-dll-@BUILDCSHARP@
39 all-dll-yes: GNU.Gettext.dll
41 GNU.Gettext.dll: intl.cs
42 $(CSHARPCOMP) $(CSHARPCOMPFLAGS) -o $@ $(srcdir)/intl.cs
46 CLEANFILES += GNU.Gettext.dll GNU.Gettext.dll.mdb
48 install-dll: install-dll-@BUILDCSHARP@
50 $(MKDIR_P) $(DESTDIR)$(libdir)
51 install-dll-yes: all-dll-yes
52 $(MKDIR_P) $(DESTDIR)$(libdir)
53 $(INSTALL_DATA) GNU.Gettext.dll $(DESTDIR)$(libdir)/GNU.Gettext.dll
56 $(MKDIR_P) $(DESTDIR)$(libdir)
59 $(RM) $(DESTDIR)$(libdir)/GNU.Gettext.dll
62 # C# reference documentation. Requires the pnet tools.
65 test -d csharpdoc || mkdir csharpdoc
66 csdoc -flibrary-name=GNU.Gettext intl.cs | \
67 csdoc2html -o csharpdoc -fmulti-file -fframes -fcombine-members -fno-namespace-directories -
69 intl-csharp.texi: intl.cs
70 csdoc -flibrary-name=GNU.Gettext intl.cs | \
71 csdoc2texi -fembedded -fparent='C#' -o $@ -
73 all-doc: $(srcdir)/csharpdoc/index.html
76 csharpdoc/index.html \
77 csharpdoc/namespaces.html \
78 csharpdoc/begin.html \
79 csharpdoc/GNU_Gettext.html \
80 csharpdoc/GNU_Gettext_GettextResourceManager.html \
81 csharpdoc/GNU_Gettext_GettextResourceSet.html
83 EXTRA_DIST += $(DOC_FILES)
86 $(MKDIR_P) $(DESTDIR)$(htmldir)/csharpdoc
87 @for f in $(DOC_FILES); do \
88 echo "$(INSTALL_DATA) $(srcdir)/$$f $(DESTDIR)$(htmldir)/$$f"; \
89 $(INSTALL_DATA) $(srcdir)/$$f $(DESTDIR)$(htmldir)/$$f; \
93 $(MKDIR_P) $(DESTDIR)$(htmldir)/csharpdoc
96 @for f in $(DOC_FILES); do \
97 echo "$(RM) $(DESTDIR)$(htmldir)/$$f"; \
98 $(RM) $(DESTDIR)$(htmldir)/$$f; \