gnome-control-center/shell/Makefile.am
Jasper St. Pierre 39c81b399d Remove gnomecc.directory
gnome-menus now ships its own directory file.
2013-02-15 20:50:44 -05:00

130 lines
4.1 KiB
Makefile

INCLUDES = \
-I$(top_srcdir) \
$(SHELL_CFLAGS) \
$(CHEESE_CFLAGS) \
-I$(top_srcdir)/libgd
all-local: check-local
bin_PROGRAMS = gnome-control-center
BUILT_SOURCES = \
cc-shell-resources.c \
cc-shell-resources.h
gnome_control_center_SOURCES = \
$(BUILT_SOURCES) \
control-center.c \
cc-shell-log.c \
cc-shell-log.h \
gnome-control-center.c \
gnome-control-center.h \
cc-shell-category-view.c \
cc-shell-category-view.h \
cc-shell-item-view.c \
cc-shell-item-view.h \
cc-shell-model.c \
cc-shell-model.h \
cc-editable-entry.c \
cc-editable-entry.h \
cc-panel-loader.c \
cc-panel-loader.h \
cc-panel.c \
cc-panel.h \
cc-shell.c \
cc-shell.h \
cc-util.c \
cc-util.h \
hostname-helper.c \
hostname-helper.h \
cc-hostname-entry.c \
cc-hostname-entry.h \
$(MARSHAL_FILES)
gnome_control_center_LDFLAGS = -export-dynamic
gnome_control_center_LDADD = \
$(SHELL_LIBS) \
$(CHEESE_LIBS) \
$(top_builddir)/libgd/libgd.la \
$(top_builddir)/panels/background/libbackground.la \
$(top_builddir)/panels/color/libcolor.la \
$(top_builddir)/panels/datetime/libdate_time.la \
$(top_builddir)/panels/display/libdisplay.la \
$(top_builddir)/panels/info/libinfo.la \
$(top_builddir)/panels/keyboard/libkeyboard.la \
$(top_builddir)/panels/mouse/libmouse-properties.la \
$(top_builddir)/panels/notifications/libnotifications.la \
$(top_builddir)/panels/online-accounts/libonline-accounts.la \
$(top_builddir)/panels/power/libpower.la \
$(top_builddir)/panels/privacy/libprivacy.la \
$(top_builddir)/panels/region/libregion.la \
$(top_builddir)/panels/search/libsearch.la \
$(top_builddir)/panels/sharing/libsharing.la \
$(top_builddir)/panels/sound/libsound.la \
$(top_builddir)/panels/universal-access/libuniversal-access.la \
$(top_builddir)/panels/user-accounts/libuser-accounts.la
if BUILD_WACOM
gnome_control_center_LDADD += $(top_builddir)/panels/wacom/libwacom-properties.la
endif
if BUILD_PRINTERS
gnome_control_center_LDADD += $(top_builddir)/panels/printers/libprinters.la
endif
if BUILD_NETWORK
gnome_control_center_LDADD += $(top_builddir)/panels/network/libnetwork.la
endif
if BUILD_BLUETOOTH
gnome_control_center_LDADD += $(top_builddir)/panels/bluetooth/libbluetooth.la
endif
AM_CPPFLAGS = -DGNOMELOCALEDIR="\"$(datadir)/locale\""
menudir = $(sysconfdir)/xdg/menus
menu_DATA = gnomecc.menu
gnomecc.menu: gnomecc.menu.in
$(AM_V_GEN) cat $< | sed 's,@applicationsdir@,$(datadir)/applications/,' > $@
resource_files = $(shell glib-compile-resources --sourcedir=$(srcdir) --generate-dependencies $(srcdir)/shell.gresource.xml)
cc-shell-resources.c: shell.gresource.xml $(resource_files)
$(AM_V_GEN) glib-compile-resources --target=$@ --sourcedir=$(srcdir) --generate-source --c-name cc_shell $<
cc-shell-resources.h: shell.gresource.xml $(resource_files)
$(AM_V_GEN) glib-compile-resources --target=$@ --sourcedir=$(srcdir) --generate-header --c-name cc_shell $<
sysdir = $(datadir)/applications
sys_in_files = gnome-control-center.desktop.in
sys_DATA = $(sys_in_files:.desktop.in=.desktop)
@INTLTOOL_DESKTOP_RULE@
completiondir = $(datadir)/bash-completion/completions
completion_in_files = completions/gnome-control-center.in
completion_DATA = $(completion_in_files:.in=)
completions/gnome-control-center: completions/gnome-control-center.in list-panel.sh
$(AM_V_GEN) mkdir -p `dirname $@` && cat $< | sed "s,@PANELS@,`$(srcdir)/list-panel.sh $(top_srcdir)`," > $@
EXTRA_DIST = \
$(resource_files) \
shell.gresource.xml \
gnome-control-center.desktop.in.in \
$(completion_in_files) \
list-panel.sh \
gnomecc.menu.in
CLEANFILES = $(BUILT_SOURCES) $(completion_DATA)
DISTCLEANFILES = gnome-control-center.desktop gnome-control-center.desktop.in gnomecc.menu
noinst_PROGRAMS = test-hostname
test_hostname_SOURCES = hostname-helper.c hostname-helper.h test-hostname.c
test_hostname_LDADD = $(PANEL_LIBS) $(INFO_PANEL_LIBS)
test_hostname_CFLAGS = $(INCLUDES)
EXTRA_DIST += hostnames-test.txt
check-local: test-hostname
$(builddir)/test-hostname $(srcdir)/hostnames-test.txt > /dev/null
-include $(top_srcdir)/git.mk