1 # Example for use of GNU gettext.
2 # Copyright (C) 2003 Free Software Foundation, Inc.
3 # This file is in the public domain.
5 # Makefile configuration - processed by automake.
7 # General automake options.
8 AUTOMAKE_OPTIONS = foreign
9 ACLOCAL_AMFLAGS = -I m4
11 # The list of subdirectories containing Makefiles.
14 # The list of programs that are built.
15 bin_CSHARPPROGRAMS = hello
17 # The source files of the 'hello' program.
18 hello_SOURCES = hello.cs
20 # The link dependencies of the 'hello' program.
21 hello_CSHARPLIBS = @GNU_GETTEXT_LDADD@ @GNU_GETTEXT_LIBS@ -l System
23 # Resources that are generated from PO files.
24 MAINTAINERCLEANFILES = */*.resources.dll
26 # Additional files to be distributed.
27 EXTRA_DIST = autogen.sh autoclean.sh
30 # ----------------- General rules for compiling C# programs -----------------
32 pkgdatadir = $(datadir)/$(PACKAGE)
33 pkglibdir = $(libdir)/$(PACKAGE)
35 CSHARPCOMP = $(SHELL) csharpcomp.sh
36 CSHARPCOMPFLAGS = -O -g
38 EXTRA_DIST += $(hello_SOURCES)
40 DISTCLEANFILES = csharpcomp.sh csharpexec.sh
43 # Rules for compiling C# programs.
45 all-local: hello.net.exe hello.sh
47 hello.net.exe: $(hello_SOURCES)
48 $(CSHARPCOMP) $(CSHARPCOMPFLAGS) -o $@ $(hello_CSHARPLIBS) $(srcdir)/hello.cs
52 echo "exec /bin/sh '$(pkgdatadir)/csharpexec.sh' @GNU_GETTEXT_LDADD@ '$(pkglibdir)/hello.net.exe' \"\$$@\""; \
55 install-exec-local: all-local
56 $(mkinstalldirs) $(DESTDIR)$(bindir)
57 $(INSTALL_SCRIPT) hello.sh $(DESTDIR)$(bindir)/hello
58 $(mkinstalldirs) $(DESTDIR)$(pkglibdir)
59 $(INSTALL_DATA) hello.net.exe $(DESTDIR)$(pkglibdir)/hello.net.exe
61 install-data-local: all-local
62 $(mkinstalldirs) $(DESTDIR)$(pkgdatadir)
63 $(INSTALL_DATA) csharpexec.sh $(DESTDIR)$(pkgdatadir)/csharpexec.sh
66 $(mkinstalldirs) $(DESTDIR)$(bindir)
67 $(mkinstalldirs) $(DESTDIR)$(pkglibdir)
68 $(mkinstalldirs) $(DESTDIR)$(pkgdatadir)
71 rm -f $(DESTDIR)$(bindir)/hello
72 rm -f $(DESTDIR)$(pkglibdir)/hello.net.exe
73 rm -f $(DESTDIR)$(pkgdatadir)/csharpexec.sh
75 CLEANFILES += hello.net.exe hello.sh