~ubuntu-branches/ubuntu/breezy/gettext/breezy

« back to all changes in this revision

Viewing changes to gettext-runtime/intl-csharp/Makefile.am

  • Committer: Bazaar Package Importer
  • Author(s): Santiago Vila
  • Date: 2004-03-14 17:40:02 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20040314174002-p1ad5ldve1hqzhye
Tags: 0.14.1-2
* Added libexpat1-dev to Build-Depends, for glade support.
* Added libc0.1-dev to Build-Depends, for GNU/kFreeBSD.
* Removed special-casing of knetbsd-gnu in debian/rules.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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.
 
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
 
16
## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
17
 
 
18
## Process this file with automake to produce Makefile.in.
 
19
 
 
20
AUTOMAKE_OPTIONS = 1.2 gnits
 
21
EXTRA_DIST =
 
22
CLEANFILES =
 
23
 
 
24
RM = rm -f
 
25
 
 
26
docdir = @docdir@
 
27
htmldir = $(docdir)
 
28
 
 
29
CSHARPCOMP = $(SHELL) ../lib/csharpcomp.sh
 
30
CSHARPCOMPFLAGS = -O -g
 
31
 
 
32
 
 
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
 
37
 
 
38
 
 
39
# Special rules for C# compilation.
 
40
 
 
41
all-dll: all-dll-@BUILDCSHARP@
 
42
all-dll-no:
 
43
all-dll-yes: GNU.Gettext.dll
 
44
 
 
45
GNU.Gettext.dll: intl.cs
 
46
        $(CSHARPCOMP) $(CSHARPCOMPFLAGS) -o $@ $(srcdir)/intl.cs
 
47
 
 
48
EXTRA_DIST += intl.cs
 
49
 
 
50
CLEANFILES += GNU.Gettext.dll
 
51
 
 
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
 
58
 
 
59
installdirs-dll:
 
60
        $(mkinstalldirs) $(DESTDIR)$(libdir)
 
61
 
 
62
uninstall-dll:
 
63
        $(RM) $(DESTDIR)$(libdir)/GNU.Gettext.dll
 
64
 
 
65
 
 
66
# C# reference documentation. Requires the pnet tools.
 
67
 
 
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 -
 
72
 
 
73
intl-csharp.texi: intl.cs
 
74
        csdoc -flibrary-name=GNU.Gettext intl.cs | \
 
75
        csdoc2texi -fembedded -fparent='C#' -o $@ -
 
76
 
 
77
all-doc: $(srcdir)/csharpdoc/index.html
 
78
 
 
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
 
86
 
 
87
EXTRA_DIST += $(DOC_FILES)
 
88
 
 
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
 
95
 
 
96
installdirs-doc:
 
97
        $(mkinstalldirs) $(DESTDIR)$(htmldir)/csharpdoc
 
98
 
 
99
uninstall-doc:
 
100
        @for f in $(DOC_FILES); do \
 
101
          echo "$(RM) $(DESTDIR)$(htmldir)/$$f"; \
 
102
          $(RM) $(DESTDIR)$(htmldir)/$$f; \
 
103
        done