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 2, or (at your option) 7## 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, write to the Free Software Foundation, 16## Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 17 18## Process this file with automake to produce Makefile.in. 19 20AUTOMAKE_OPTIONS = 1.2 gnits 21EXTRA_DIST = 22CLEANFILES = 23 24RM = rm -f 25 26CSHARPCOMP = $(SHELL) ../csharpcomp.sh 27CSHARPCOMPFLAGS = @CSHARPCOMPFLAGS@ 28 29 30all-local: all-dll all-doc 31install-data-local: install-dll install-doc 32installdirs-local: installdirs-dll installdirs-doc 33uninstall-local: uninstall-dll uninstall-doc 34 35 36# Special rules for C# compilation. 37 38all-dll: all-dll-@BUILDCSHARP@ 39all-dll-no: 40all-dll-yes: GNU.Gettext.dll 41 42GNU.Gettext.dll: intl.cs 43 $(CSHARPCOMP) $(CSHARPCOMPFLAGS) -o $@ $(srcdir)/intl.cs 44 45EXTRA_DIST += intl.cs 46 47CLEANFILES += GNU.Gettext.dll GNU.Gettext.dll.mdb 48 49install-dll: install-dll-@BUILDCSHARP@ 50install-dll-no: 51 $(mkdir_p) $(DESTDIR)$(libdir) 52install-dll-yes: all-dll-yes 53 $(mkdir_p) $(DESTDIR)$(libdir) 54 $(INSTALL_DATA) GNU.Gettext.dll $(DESTDIR)$(libdir)/GNU.Gettext.dll 55 56installdirs-dll: 57 $(mkdir_p) $(DESTDIR)$(libdir) 58 59uninstall-dll: 60 $(RM) $(DESTDIR)$(libdir)/GNU.Gettext.dll 61 62 63# C# reference documentation. Requires the pnet tools. 64 65csharpdoc: 66 test -d csharpdoc || mkdir csharpdoc 67 csdoc -flibrary-name=GNU.Gettext intl.cs | \ 68 csdoc2html -o csharpdoc -fmulti-file -fframes -fcombine-members -fno-namespace-directories - 69 70intl-csharp.texi: intl.cs 71 csdoc -flibrary-name=GNU.Gettext intl.cs | \ 72 csdoc2texi -fembedded -fparent='C#' -o $@ - 73 74all-doc: $(srcdir)/csharpdoc/index.html 75 76DOC_FILES = \ 77 csharpdoc/index.html \ 78 csharpdoc/namespaces.html \ 79 csharpdoc/begin.html \ 80 csharpdoc/GNU_Gettext.html \ 81 csharpdoc/GNU_Gettext_GettextResourceManager.html \ 82 csharpdoc/GNU_Gettext_GettextResourceSet.html 83 84EXTRA_DIST += $(DOC_FILES) 85 86install-doc: all-doc 87 $(mkdir_p) $(DESTDIR)$(htmldir)/csharpdoc 88 @for f in $(DOC_FILES); do \ 89 echo "$(INSTALL_DATA) $(srcdir)/$$f $(DESTDIR)$(htmldir)/$$f"; \ 90 $(INSTALL_DATA) $(srcdir)/$$f $(DESTDIR)$(htmldir)/$$f; \ 91 done 92 93installdirs-doc: 94 $(mkdir_p) $(DESTDIR)$(htmldir)/csharpdoc 95 96uninstall-doc: 97 @for f in $(DOC_FILES); do \ 98 echo "$(RM) $(DESTDIR)$(htmldir)/$$f"; \ 99 $(RM) $(DESTDIR)$(htmldir)/$$f; \ 100 done 101