File: Makefile.am

package info (click to toggle)
gettext 0.18.1.1-9
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 70,628 kB
  • sloc: ansic: 333,297; sh: 51,604; makefile: 8,355; perl: 4,181; lisp: 3,357; yacc: 665; java: 613; cs: 578; sed: 369; objc: 337; cpp: 325; awk: 80; tcl: 63; pascal: 11; php: 8
file content (74 lines) | stat: -rw-r--r-- 2,027 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# Example for use of GNU gettext.
# This file is in the public domain.
#
# Makefile configuration - processed by automake.

# General automake options.
AUTOMAKE_OPTIONS = foreign
ACLOCAL_AMFLAGS = -I m4

# The list of subdirectories containing Makefiles.
SUBDIRS = m4 po

# The list of programs that are built.
bin_CSHARPPROGRAMS = hello

# The source files of the 'hello' program.
hello_SOURCES = hello.cs

# The link dependencies of the 'hello' program.
hello_CSHARPLIBS = @GNU_GETTEXT_LDADD@ @GNU_GETTEXT_LIBS@ -l System -l System.Drawing -l System.Windows.Forms

# Resources that are generated from PO files.
MAINTAINERCLEANFILES = */*.resources.dll

# Additional files to be distributed.
EXTRA_DIST = autogen.sh autoclean.sh


# ----------------- General rules for compiling C# programs -----------------

pkgdatadir = $(datadir)/$(PACKAGE)
pkglibdir = $(libdir)/$(PACKAGE)

CSHARPCOMP = $(SHELL) csharpcomp.sh
CSHARPCOMPFLAGS = -O -g

EXTRA_DIST += $(hello_SOURCES)
CLEANFILES =
DISTCLEANFILES = csharpcomp.sh csharpexec.sh


# Rules for compiling C# programs.

all-local: hello.net.exe hello.sh

hello.net.exe: $(hello_SOURCES)
	$(CSHARPCOMP) $(CSHARPCOMPFLAGS) -o $@ $(hello_CSHARPLIBS) $(srcdir)/hello.cs

hello.sh:
	{ echo '#!/bin/sh'; \
	  echo "exec /bin/sh '$(pkgdatadir)/csharpexec.sh' @GNU_GETTEXT_LDADD@ '$(pkglibdir)/hello.net.exe' \"\$$@\""; \
	} > $@

install-exec-local: all-local
	$(mkdir_p) $(DESTDIR)$(bindir)
	$(INSTALL_SCRIPT) hello.sh $(DESTDIR)$(bindir)/hello
	$(mkdir_p) $(DESTDIR)$(pkglibdir)
	$(INSTALL_DATA) hello.net.exe $(DESTDIR)$(pkglibdir)/hello.net.exe

install-data-local: all-local
	$(mkdir_p) $(DESTDIR)$(pkgdatadir)
	$(INSTALL_DATA) csharpexec.sh $(DESTDIR)$(pkgdatadir)/csharpexec.sh

installdirs-local:
	$(mkdir_p) $(DESTDIR)$(bindir)
	$(mkdir_p) $(DESTDIR)$(pkglibdir)
	$(mkdir_p) $(DESTDIR)$(pkgdatadir)

uninstall-local:
	rm -f $(DESTDIR)$(bindir)/hello
	rm -f $(DESTDIR)$(pkglibdir)/hello.net.exe
	rm -f $(DESTDIR)$(pkgdatadir)/csharpexec.sh

CLEANFILES += hello.net.exe hello.sh