Install gettext-0.18.1.1.tar.gz
[msysgit.git] / mingw / share / doc / gettext / examples / hello-csharp-forms / Makefile.am
bloba78cbc6c51ec0130a71dc3288a2532049473830a
1 # Example for use of GNU gettext.
2 # This file is in the public domain.
4 # Makefile configuration - processed by automake.
6 # General automake options.
7 AUTOMAKE_OPTIONS = foreign
8 ACLOCAL_AMFLAGS = -I m4
10 # The list of subdirectories containing Makefiles.
11 SUBDIRS = m4 po
13 # The list of programs that are built.
14 bin_CSHARPPROGRAMS = hello
16 # The source files of the 'hello' program.
17 hello_SOURCES = hello.cs
19 # The link dependencies of the 'hello' program.
20 hello_CSHARPLIBS = @GNU_GETTEXT_LDADD@ @GNU_GETTEXT_LIBS@ -l System -l System.Drawing -l System.Windows.Forms
22 # Resources that are generated from PO files.
23 MAINTAINERCLEANFILES = */*.resources.dll
25 # Additional files to be distributed.
26 EXTRA_DIST = autogen.sh autoclean.sh
29 # ----------------- General rules for compiling C# programs -----------------
31 pkgdatadir = $(datadir)/$(PACKAGE)
32 pkglibdir = $(libdir)/$(PACKAGE)
34 CSHARPCOMP = $(SHELL) csharpcomp.sh
35 CSHARPCOMPFLAGS = -O -g
37 EXTRA_DIST += $(hello_SOURCES)
38 CLEANFILES =
39 DISTCLEANFILES = csharpcomp.sh csharpexec.sh
42 # Rules for compiling C# programs.
44 all-local: hello.net.exe hello.sh
46 hello.net.exe: $(hello_SOURCES)
47         $(CSHARPCOMP) $(CSHARPCOMPFLAGS) -o $@ $(hello_CSHARPLIBS) $(srcdir)/hello.cs
49 hello.sh:
50         { echo '#!/bin/sh'; \
51           echo "exec /bin/sh '$(pkgdatadir)/csharpexec.sh' @GNU_GETTEXT_LDADD@ '$(pkglibdir)/hello.net.exe' \"\$$@\""; \
52         } > $@
54 install-exec-local: all-local
55         $(mkdir_p) $(DESTDIR)$(bindir)
56         $(INSTALL_SCRIPT) hello.sh $(DESTDIR)$(bindir)/hello
57         $(mkdir_p) $(DESTDIR)$(pkglibdir)
58         $(INSTALL_DATA) hello.net.exe $(DESTDIR)$(pkglibdir)/hello.net.exe
60 install-data-local: all-local
61         $(mkdir_p) $(DESTDIR)$(pkgdatadir)
62         $(INSTALL_DATA) csharpexec.sh $(DESTDIR)$(pkgdatadir)/csharpexec.sh
64 installdirs-local:
65         $(mkdir_p) $(DESTDIR)$(bindir)
66         $(mkdir_p) $(DESTDIR)$(pkglibdir)
67         $(mkdir_p) $(DESTDIR)$(pkgdatadir)
69 uninstall-local:
70         rm -f $(DESTDIR)$(bindir)/hello
71         rm -f $(DESTDIR)$(pkglibdir)/hello.net.exe
72         rm -f $(DESTDIR)$(pkgdatadir)/csharpexec.sh
74 CLEANFILES += hello.net.exe hello.sh