Imported Upstream version 0.18.3.2
[platform/upstream/gettext.git] / gettext-runtime / intl-csharp / Makefile.am
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
19 AUTOMAKE_OPTIONS = 1.2 gnits
20 EXTRA_DIST =
21 CLEANFILES =
22
23 RM = rm -f
24
25 CSHARPCOMP = $(SHELL) ../csharpcomp.sh
26 CSHARPCOMPFLAGS = @CSHARPCOMPFLAGS@
27
28
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
33
34
35 # Special rules for C# compilation.
36
37 all-dll: all-dll-@BUILDCSHARP@
38 all-dll-no:
39 all-dll-yes: GNU.Gettext.dll
40
41 GNU.Gettext.dll: intl.cs
42         $(CSHARPCOMP) $(CSHARPCOMPFLAGS) -o $@ $(srcdir)/intl.cs
43
44 EXTRA_DIST += intl.cs
45
46 CLEANFILES += GNU.Gettext.dll GNU.Gettext.dll.mdb
47
48 install-dll: install-dll-@BUILDCSHARP@
49 install-dll-no:
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
54
55 installdirs-dll:
56         $(MKDIR_P) $(DESTDIR)$(libdir)
57
58 uninstall-dll:
59         $(RM) $(DESTDIR)$(libdir)/GNU.Gettext.dll
60
61
62 # C# reference documentation. Requires the pnet tools.
63
64 csharpdoc:
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
69 intl-csharp.texi: intl.cs
70         csdoc -flibrary-name=GNU.Gettext intl.cs | \
71         csdoc2texi -fembedded -fparent='C#' -o $@ -
72
73 all-doc: $(srcdir)/csharpdoc/index.html
74
75 DOC_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
83 EXTRA_DIST += $(DOC_FILES)
84
85 install-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
92 installdirs-doc:
93         $(MKDIR_P) $(DESTDIR)$(htmldir)/csharpdoc
94
95 uninstall-doc:
96         @for f in $(DOC_FILES); do \
97           echo "$(RM) $(DESTDIR)$(htmldir)/$$f"; \
98           $(RM) $(DESTDIR)$(htmldir)/$$f; \
99         done