b37d1a83e3ed0de924d3250aa7c67b3dafe35014
[platform/upstream/gettext.git] / gettext-tools / examples / hello-pascal / Makefile.am
1 # Example for use of GNU gettext.
2 # This file is in the public domain.
3 #
4 # Makefile configuration - processed by automake.
5
6 # General automake options.
7 AUTOMAKE_OPTIONS = foreign
8 ACLOCAL_AMFLAGS = -I m4
9
10 # The list of subdirectories containing Makefiles.
11 SUBDIRS = m4 po
12
13 # The list of programs that are built.
14 bin_PASCALPROGRAMS = hello
15
16 # The source files of the 'hello' program.
17 hello_SOURCES = hello.pas
18
19 # Additional files to be distributed.
20 EXTRA_DIST = autogen.sh autoclean.sh
21
22 # ---------------- General rules for compiling Pascal programs ----------------
23
24 all-local: hello$(EXEEXT)
25
26 # How to build the 'hello' program.
27 hello$(EXEEXT) hello.rst: $(hello_SOURCES)
28         LOCALEDIR='@localedir@' $(PPC) $(hello_SOURCES)
29
30 install-exec-local: all-local
31         $(mkdir_p) $(DESTDIR)$(bindir)
32         $(INSTALL_PROGRAM) hello$(EXEEXT) $(DESTDIR)$(bindir)/hello$(EXEEXT)
33
34 installdirs-local:
35         $(mkdir_p) $(DESTDIR)$(bindir)
36
37 uninstall-local:
38         rm -f $(DESTDIR)$(bindir)/hello$(EXEEXT)
39
40 # Distribute the RST file because it's needed to generate POT files and can
41 # only be rebuilt on those platforms to which the Pascal compiler is ported.
42 EXTRA_DIST += hello.rst
43
44 # The list of auxiliary files generated during the compilation.
45 CLEANFILES = hello.o hello$(EXEEXT)