1# Example for use of GNU gettext.
2# Copyright (C) 2003 Free Software Foundation, Inc.
3# This file is in the public domain.
4#
5# Makefile configuration - processed by automake.
6
7# General automake options.
8AUTOMAKE_OPTIONS = foreign
9ACLOCAL_AMFLAGS = -I m4
10
11# The list of subdirectories containing Makefiles.
12SUBDIRS = m4 po
13
14# The list of programs that are built.
15bin_PASCALPROGRAMS = hello
16
17# The source files of the 'hello' program.
18hello_SOURCES = hello.pas
19
20# Additional files to be distributed.
21EXTRA_DIST = autogen.sh autoclean.sh
22
23# ---------------- General rules for compiling Pascal programs ----------------
24
25all-local: hello$(EXEEXT)
26
27# How to build the 'hello' program.
28hello$(EXEEXT) hello.rst: $(hello_SOURCES)
29	LOCALEDIR='@localedir@' $(PPC) $(hello_SOURCES)
30
31install-exec-local: all-local
32	$(mkinstalldirs) $(DESTDIR)$(bindir)
33	$(INSTALL_PROGRAM) hello$(EXEEXT) $(DESTDIR)$(bindir)/hello$(EXEEXT)
34
35installdirs-local:
36	$(mkinstalldirs) $(DESTDIR)$(bindir)
37
38uninstall-local:
39	rm -f $(DESTDIR)$(bindir)/hello$(EXEEXT)
40
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.
43EXTRA_DIST += hello.rst
44
45# The list of auxiliary files generated during the compilation.
46CLEANFILES = hello.o hello$(EXEEXT)
47