# Example for use of GNU gettext. # This file is in the public domain. # # Makefile configuration - processed by automake. # General automake options. AUTOMAKE_OPTIONS = foreign no-dependencies ACLOCAL_AMFLAGS = -I m4 # The list of subdirectories containing Makefiles. SUBDIRS = m4 po # The list of programs that are built. bin_PROGRAMS = hello # The source files of the 'hello' program. hello_SOURCES = hello.cc hello-resources.c # Define a C macro LOCALEDIR indicating where catalogs will be installed. DEFS = \ -DLOCALEDIR=$(localedir_c_make) \ @DEFS@ # Make sure the gnome.h include file is found. AM_CPPFLAGS = $(GTKMM_CFLAGS) # Link time dependencies. LDADD = $(GTKMM_LIBS) @LIBINTL@ # Compile assets into a C source and link it with the application. hello-resources.c: hello.gresource.xml hello.ui $(AM_V_GEN) $(GLIB_COMPILE_RESOURCES) $< --target=$@ \ --sourcedir=$(srcdir) --generate-source desktopdir = $(datadir)/applications desktop_DATA = hello.desktop # Merge translations back into a Desktop Entry file. # Note that the resulting file should be included in EXTRA_DIST and # processed earlier than the variable substitution below. Otherwise, # the 'msgfmt' command will be required at compile-time. hello.desktop.in: hello.desktop.in.in $(AM_V_GEN) $(MSGFMT) --desktop --template $< -d $(top_srcdir)/po -o $@ # Substitute variables in a Desktop Entry file. hello.desktop: hello.desktop.in $(AM_V_GEN) sed -e 's|@bindir[@]|$(bindir)|g' $< > $@ BUILT_SOURCES = hello-resources.c hello.desktop CLEANFILES = hello.desktop DISTCLEANFILES = MAINTAINERCLEANFILES = hello-resources.c hello.desktop.in # Additional files to be distributed. EXTRA_DIST = autogen.sh autoclean.sh \ hello.desktop.in.in hello.desktop.in \ hello.gresource.xml hello.ui