Blame gettext-tools/examples/hello-c-gnome3/Makefile.am

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