No empty .Rs/.Re
[netbsd-mini2440.git] / gnu / dist / gettext / gettext-runtime / intl-csharp / Makefile.am
blobcf9ec68ed35149b7ce503436aef1028adc59a31f
1 ## Makefile for the gettext-runtime/intl-csharp subdirectory of GNU gettext
2 ## Copyright (C) 2003 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.
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
21 EXTRA_DIST =
22 CLEANFILES =
24 RM = rm -f
26 docdir = @docdir@
27 htmldir = $(docdir)
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@
42 all-dll-no:
43 all-dll-yes: GNU.Gettext.dll
45 GNU.Gettext.dll: intl.cs
46         $(CSHARPCOMP) $(CSHARPCOMPFLAGS) -o $@ $(srcdir)/intl.cs
48 EXTRA_DIST += intl.cs
50 CLEANFILES += GNU.Gettext.dll
52 install-dll: install-dll-@BUILDCSHARP@
53 install-dll-no:
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
59 installdirs-dll:
60         $(mkinstalldirs) $(DESTDIR)$(libdir)
62 uninstall-dll:
63         $(RM) $(DESTDIR)$(libdir)/GNU.Gettext.dll
66 # C# reference documentation. Requires the pnet tools.
68 csharpdoc:
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
79 DOC_FILES = \
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)
89 install-doc: all-doc
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; \
94         done
96 installdirs-doc:
97         $(mkinstalldirs) $(DESTDIR)$(htmldir)/csharpdoc
99 uninstall-doc:
100         @for f in $(DOC_FILES); do \
101           echo "$(RM) $(DESTDIR)$(htmldir)/$$f"; \
102           $(RM) $(DESTDIR)$(htmldir)/$$f; \
103         done