1*63eb84d1Schristos## Makefile for the gettext-runtime/intl-csharp subdirectory of GNU gettext 2*63eb84d1Schristos## Copyright (C) 2003, 2006 Free Software Foundation, Inc. 3*63eb84d1Schristos## 4*63eb84d1Schristos## This program is free software; you can redistribute it and/or modify 5*63eb84d1Schristos## it under the terms of the GNU General Public License as published by 6*63eb84d1Schristos## the Free Software Foundation; either version 2, or (at your option) 7*63eb84d1Schristos## any later version. 8*63eb84d1Schristos## 9*63eb84d1Schristos## This program is distributed in the hope that it will be useful, 10*63eb84d1Schristos## but WITHOUT ANY WARRANTY; without even the implied warranty of 11*63eb84d1Schristos## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12*63eb84d1Schristos## GNU General Public License for more details. 13*63eb84d1Schristos## 14*63eb84d1Schristos## You should have received a copy of the GNU General Public License 15*63eb84d1Schristos## along with this program; if not, write to the Free Software Foundation, 16*63eb84d1Schristos## Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 17*63eb84d1Schristos 18*63eb84d1Schristos## Process this file with automake to produce Makefile.in. 19*63eb84d1Schristos 20*63eb84d1SchristosAUTOMAKE_OPTIONS = 1.2 gnits 21*63eb84d1SchristosEXTRA_DIST = 22*63eb84d1SchristosCLEANFILES = 23*63eb84d1Schristos 24*63eb84d1SchristosRM = rm -f 25*63eb84d1Schristos 26*63eb84d1SchristosCSHARPCOMP = $(SHELL) ../csharpcomp.sh 27*63eb84d1SchristosCSHARPCOMPFLAGS = @CSHARPCOMPFLAGS@ 28*63eb84d1Schristos 29*63eb84d1Schristos 30*63eb84d1Schristosall-local: all-dll all-doc 31*63eb84d1Schristosinstall-data-local: install-dll install-doc 32*63eb84d1Schristosinstalldirs-local: installdirs-dll installdirs-doc 33*63eb84d1Schristosuninstall-local: uninstall-dll uninstall-doc 34*63eb84d1Schristos 35*63eb84d1Schristos 36*63eb84d1Schristos# Special rules for C# compilation. 37*63eb84d1Schristos 38*63eb84d1Schristosall-dll: all-dll-@BUILDCSHARP@ 39*63eb84d1Schristosall-dll-no: 40*63eb84d1Schristosall-dll-yes: GNU.Gettext.dll 41*63eb84d1Schristos 42*63eb84d1SchristosGNU.Gettext.dll: intl.cs 43*63eb84d1Schristos $(CSHARPCOMP) $(CSHARPCOMPFLAGS) -o $@ $(srcdir)/intl.cs 44*63eb84d1Schristos 45*63eb84d1SchristosEXTRA_DIST += intl.cs 46*63eb84d1Schristos 47*63eb84d1SchristosCLEANFILES += GNU.Gettext.dll GNU.Gettext.dll.mdb 48*63eb84d1Schristos 49*63eb84d1Schristosinstall-dll: install-dll-@BUILDCSHARP@ 50*63eb84d1Schristosinstall-dll-no: 51*63eb84d1Schristos $(mkdir_p) $(DESTDIR)$(libdir) 52*63eb84d1Schristosinstall-dll-yes: all-dll-yes 53*63eb84d1Schristos $(mkdir_p) $(DESTDIR)$(libdir) 54*63eb84d1Schristos $(INSTALL_DATA) GNU.Gettext.dll $(DESTDIR)$(libdir)/GNU.Gettext.dll 55*63eb84d1Schristos 56*63eb84d1Schristosinstalldirs-dll: 57*63eb84d1Schristos $(mkdir_p) $(DESTDIR)$(libdir) 58*63eb84d1Schristos 59*63eb84d1Schristosuninstall-dll: 60*63eb84d1Schristos $(RM) $(DESTDIR)$(libdir)/GNU.Gettext.dll 61*63eb84d1Schristos 62*63eb84d1Schristos 63*63eb84d1Schristos# C# reference documentation. Requires the pnet tools. 64*63eb84d1Schristos 65*63eb84d1Schristoscsharpdoc: 66*63eb84d1Schristos test -d csharpdoc || mkdir csharpdoc 67*63eb84d1Schristos csdoc -flibrary-name=GNU.Gettext intl.cs | \ 68*63eb84d1Schristos csdoc2html -o csharpdoc -fmulti-file -fframes -fcombine-members -fno-namespace-directories - 69*63eb84d1Schristos 70*63eb84d1Schristosintl-csharp.texi: intl.cs 71*63eb84d1Schristos csdoc -flibrary-name=GNU.Gettext intl.cs | \ 72*63eb84d1Schristos csdoc2texi -fembedded -fparent='C#' -o $@ - 73*63eb84d1Schristos 74*63eb84d1Schristosall-doc: $(srcdir)/csharpdoc/index.html 75*63eb84d1Schristos 76*63eb84d1SchristosDOC_FILES = \ 77*63eb84d1Schristos csharpdoc/index.html \ 78*63eb84d1Schristos csharpdoc/namespaces.html \ 79*63eb84d1Schristos csharpdoc/begin.html \ 80*63eb84d1Schristos csharpdoc/GNU_Gettext.html \ 81*63eb84d1Schristos csharpdoc/GNU_Gettext_GettextResourceManager.html \ 82*63eb84d1Schristos csharpdoc/GNU_Gettext_GettextResourceSet.html 83*63eb84d1Schristos 84*63eb84d1SchristosEXTRA_DIST += $(DOC_FILES) 85*63eb84d1Schristos 86*63eb84d1Schristosinstall-doc: all-doc 87*63eb84d1Schristos $(mkdir_p) $(DESTDIR)$(htmldir)/csharpdoc 88*63eb84d1Schristos @for f in $(DOC_FILES); do \ 89*63eb84d1Schristos echo "$(INSTALL_DATA) $(srcdir)/$$f $(DESTDIR)$(htmldir)/$$f"; \ 90*63eb84d1Schristos $(INSTALL_DATA) $(srcdir)/$$f $(DESTDIR)$(htmldir)/$$f; \ 91*63eb84d1Schristos done 92*63eb84d1Schristos 93*63eb84d1Schristosinstalldirs-doc: 94*63eb84d1Schristos $(mkdir_p) $(DESTDIR)$(htmldir)/csharpdoc 95*63eb84d1Schristos 96*63eb84d1Schristosuninstall-doc: 97*63eb84d1Schristos @for f in $(DOC_FILES); do \ 98*63eb84d1Schristos echo "$(RM) $(DESTDIR)$(htmldir)/$$f"; \ 99*63eb84d1Schristos $(RM) $(DESTDIR)$(htmldir)/$$f; \ 100*63eb84d1Schristos done 101