Imported Upstream version 0.18.1.1
[platform/upstream/gettext.git] / gettext-tools / examples / hello-c++-kde / 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 no-dependencies
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_PROGRAMS = hello
15
16 # The source files of the 'hello' program.
17 hello_SOURCES = hello.cc hellowindow.cc
18
19 # Use 'moc' for QObject subclasses.
20 METASOURCES = AUTO
21
22 # Define a C macro LOCALEDIR indicating where catalogs will be installed.
23 DEFS = -DPREFIX=\"$(prefix)\" @DEFS@
24
25 # Make sure the KDE, Qt, X include file is found.
26 AM_CPPFLAGS = $(KDE_INCLUDES) $(QT_INCLUDES) $(X_INCLUDES)
27
28 # CXXFLAGS += $(QT_CXXFLAGS) $(PTHREAD_CFLAGS)
29
30 # Link time dependencies.
31 LDADD = $(KDE_LDFLAGS) $(QT_LDFLAGS)
32 LIBS += $(LIB_KDEUI) $(LIB_KDECORE) $(LIB_QT)
33
34 # Generic KDE build mechanism.
35
36 $(top_srcdir)/configure.in: configure.in.in $(top_srcdir)/subdirs
37         cd $(top_srcdir) && $(MAKE) -f admin/Makefile.common configure.in ;
38
39 $(top_srcdir)/subdirs:
40         cd $(top_srcdir) && $(MAKE) -f admin/Makefile.common subdirs
41
42 $(top_srcdir)/acinclude.m4: $(top_srcdir)/admin/acinclude.m4.in $(top_srcdir)/admin/libtool.m4.in
43         @cd $(top_srcdir) && cat admin/acinclude.m4.in admin/libtool.m4.in > acinclude.m4
44
45 MAINTAINERCLEANFILES = subdirs configure.in acinclude.m4 configure.files 
46
47 package-messages:
48         $(MAKE) -f admin/Makefile.common package-messages
49         $(MAKE) -C po merge
50
51 dist-hook:
52         cd $(top_distdir) && perl admin/am_edit -padmin
53         cd $(top_distdir) && $(MAKE) -f admin/Makefile.common subdirs
54
55 # Additional files to be distributed.
56 EXTRA_DIST = admin/config.rpath  autogen.sh autoclean.sh