summaryrefslogtreecommitdiff
path: root/panels/info/Makefile.am
blob: 87cb6ad419b28d8a6aff2e712852118326890c70 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
include $(top_srcdir)/Makefile.decl

cappletname = info

AM_CPPFLAGS =							\
	$(PANEL_CFLAGS)						\
	$(INFO_PANEL_CFLAGS)					\
	-DGNOMELOCALEDIR="\"$(datadir)/locale\""		\
	-DDATADIR="\"$(datadir)\""				\
	-DGNOME_SESSION_DIR="\"$(gnome_session_libexecdir)\""	\
	-DBINDIR="\"$(bindir)\""				\
	$(NULL)

noinst_LTLIBRARIES = libinfo.la

BUILT_SOURCES =			\
	cc-info-resources.c	\
	cc-info-resources.h

libinfo_la_SOURCES =			\
	$(BUILT_SOURCES)		\
	cc-info-overview-panel.c	\
	cc-info-overview-panel.h	\
	cc-info-default-apps-panel.c	\
	cc-info-default-apps-panel.h	\
	cc-info-removable-media-panel.c	\
	cc-info-removable-media-panel.h	\
	gsd-disk-space-helper.h		\
	gsd-disk-space-helper.c		\
	info-cleanup.h			\
	info-cleanup.c

libinfo_la_LIBADD = $(PANEL_LIBS) $(INFO_PANEL_LIBS)

noinst_PROGRAMS = test-info-cleanup
TEST_PROGS += $(noinst_PROGRAMS)
test_info_cleanup_SOURCES =		\
	test-info-cleanup.c		\
	info-cleanup.h			\
	info-cleanup.c
test_info_cleanup_LDADD = $(libinfo_la_LIBADD)
test_info_cleanup_CFLAGS = $(AM_CPPFLAGS) -DTEST_SRCDIR="\"$(srcdir)\""

resource_files = $(shell glib-compile-resources --sourcedir=$(srcdir) --generate-dependencies $(srcdir)/info.gresource.xml)
cc-info-resources.c: info.gresource.xml $(resource_files)
	$(AM_V_GEN) glib-compile-resources --target=$@ --sourcedir=$(srcdir) --generate-source --c-name cc_info $<
cc-info-resources.h: info.gresource.xml $(resource_files)
	$(AM_V_GEN) glib-compile-resources --target=$@ --sourcedir=$(srcdir) --generate-header --c-name cc_info $<

@INTLTOOL_DESKTOP_RULE@

desktopdir = $(datadir)/applications
desktop_in_files = \
		gnome-info-overview-panel.desktop.in	\
		gnome-default-apps-panel.desktop.in	\
		gnome-removable-media-panel.desktop.in

desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)

SPACEDIR=$(top_srcdir)/../gnome-settings-daemon/plugins/housekeeping/
SPACEFILES=gsd-disk-space-helper.c gsd-disk-space-helper.h
update-from-gsd:
	FILES="$(SPACEFILES)" DIR="$(SPACEDIR)" $(top_srcdir)/update-from-gsd.sh && changed=true ; \
	git commit -m "info: Update from gnome-settings-daemon" $(SPACEFILES)

CLEANFILES = $(desktop_in_files) $(desktop_DATA) $(BUILT_SOURCES)
EXTRA_DIST = $(resource_files) info.gresource.xml info-cleanup-test.txt

-include $(top_srcdir)/git.mk