# 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.c resources.c # Define a C macro LOCALEDIR indicating where catalogs will be installed. DEFS = -DLOCALEDIR=\"$(localedir)\" @DEFS@ # Make sure the gnome.h include file is found. AM_CPPFLAGS = $(GTK_CFLAGS) # Link time dependencies. LDADD = $(GTK_LIBS) @LIBINTL@ BUILT_SOURCES = gschemas.compiled resources.c # Compile GSettings schema. gschemas.compiled: hello.gschema.xml $(AM_V_GEN) $(GLIB_COMPILE_SCHEMAS) . # Compile assets into a C source and link it with the application. 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' $< > $@ CLEANFILES = $(BUILT_SOURCES) hello.desktop $(desktop_DATA) # Additional files to be distributed. EXTRA_DIST = autogen.sh autoclean.sh hello.ui \ hello.desktop.in.in hello.desktop.in \ hello.gschema.xml \ hello.gresource.xml MAINTAINERCLEANFILES = hello.desktop.in