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_PASCALPROGRAMS = hello
17 # The source files of the 'hello' program.
18 hello_SOURCES = hello.pas
20 # Additional files to be distributed.
21 EXTRA_DIST = autogen.sh autoclean.sh
23 # ---------------- General rules for compiling Pascal programs ----------------
25 all-local: hello$(EXEEXT)
27 # How to build the 'hello' program.
28 hello$(EXEEXT) hello.rst: $(hello_SOURCES)
29 LOCALEDIR='@localedir@' $(PPC) $(hello_SOURCES)
31 install-exec-local: all-local
32 $(mkinstalldirs) $(DESTDIR)$(bindir)
33 $(INSTALL_PROGRAM) hello$(EXEEXT) $(DESTDIR)$(bindir)/hello$(EXEEXT)
36 $(mkinstalldirs) $(DESTDIR)$(bindir)
39 rm -f $(DESTDIR)$(bindir)/hello$(EXEEXT)
41 # Distribute the RST file because it's needed to generate POT files and can
42 # only be rebuilt on those platforms to which the Pascal compiler is ported.
43 EXTRA_DIST += hello.rst
45 # The list of auxiliary files generated during the compilation.
46 CLEANFILES = hello.o hello$(EXEEXT)