1## Makefile for the gettext-runtime/intl-csharp subdirectory of GNU gettext 2## Copyright (C) 2003, 2006 Free Software Foundation, Inc. 3## 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. 8## 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. 13## 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/>. 16 17## Process this file with automake to produce Makefile.in. 18 19AUTOMAKE_OPTIONS = 1.2 gnits 20EXTRA_DIST = 21CLEANFILES = 22 23RM = rm -f 24 25CSHARPCOMP = $(SHELL) ../csharpcomp.sh 26CSHARPCOMPFLAGS = @CSHARPCOMPFLAGS@ 27 28 29all-local: all-dll all-doc 30install-data-local: install-dll install-doc 31installdirs-local: installdirs-dll installdirs-doc 32uninstall-local: uninstall-dll uninstall-doc 33 34 35# Special rules for C# compilation. 36 37all-dll: all-dll-@BUILDCSHARP@ 38all-dll-no: 39all-dll-yes: GNU.Gettext.dll 40 41GNU.Gettext.dll: intl.cs 42 $(CSHARPCOMP) $(CSHARPCOMPFLAGS) -o $@ $(srcdir)/intl.cs 43 44EXTRA_DIST += intl.cs 45 46CLEANFILES += GNU.Gettext.dll GNU.Gettext.dll.mdb 47 48install-dll: install-dll-@BUILDCSHARP@ 49install-dll-no: 50 $(mkdir_p) $(DESTDIR)$(libdir) 51install-dll-yes: all-dll-yes 52 $(mkdir_p) $(DESTDIR)$(libdir) 53 $(INSTALL_DATA) GNU.Gettext.dll $(DESTDIR)$(libdir)/GNU.Gettext.dll 54 55installdirs-dll: 56 $(mkdir_p) $(DESTDIR)$(libdir) 57 58uninstall-dll: 59 $(RM) $(DESTDIR)$(libdir)/GNU.Gettext.dll 60 61 62# C# reference documentation. Requires the pnet tools. 63 64csharpdoc: 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 - 68 69intl-csharp.texi: intl.cs 70 csdoc -flibrary-name=GNU.Gettext intl.cs | \ 71 csdoc2texi -fembedded -fparent='C#' -o $@ - 72 73all-doc: $(srcdir)/csharpdoc/index.html 74 75DOC_FILES = \ 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 82 83EXTRA_DIST += $(DOC_FILES) 84 85install-doc: all-doc 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; \ 90 done 91 92installdirs-doc: 93 $(mkdir_p) $(DESTDIR)$(htmldir)/csharpdoc 94 95uninstall-doc: 96 @for f in $(DOC_FILES); do \ 97 echo "$(RM) $(DESTDIR)$(htmldir)/$$f"; \ 98 $(RM) $(DESTDIR)$(htmldir)/$$f; \ 99 done 100