2016-11-16 15:20:39 +01:00
|
|
|
include $(top_srcdir)/Makefile.decl
|
|
|
|
|
2011-01-19 15:41:07 +00:00
|
|
|
cappletname = info
|
|
|
|
|
2016-10-11 13:41:16 +02:00
|
|
|
AM_CPPFLAGS = \
|
|
|
|
$(PANEL_CFLAGS) \
|
|
|
|
$(INFO_PANEL_CFLAGS) \
|
|
|
|
-DGNOMELOCALEDIR="\"$(datadir)/locale\"" \
|
|
|
|
-DDATADIR="\"$(datadir)\"" \
|
|
|
|
-DGNOME_SESSION_DIR="\"$(gnome_session_libexecdir)\"" \
|
|
|
|
-DBINDIR="\"$(bindir)\"" \
|
2010-12-12 14:08:40 -05:00
|
|
|
$(NULL)
|
|
|
|
|
2012-12-11 11:46:28 +01:00
|
|
|
noinst_LTLIBRARIES = libinfo.la
|
2010-12-12 14:08:40 -05:00
|
|
|
|
2013-01-04 15:05:07 +01:00
|
|
|
BUILT_SOURCES = \
|
|
|
|
cc-info-resources.c \
|
|
|
|
cc-info-resources.h
|
|
|
|
|
2010-12-12 14:08:40 -05:00
|
|
|
libinfo_la_SOURCES = \
|
2013-01-04 15:05:07 +01:00
|
|
|
$(BUILT_SOURCES) \
|
2011-05-13 15:48:45 +01:00
|
|
|
cc-info-panel.c \
|
|
|
|
cc-info-panel.h \
|
2012-04-19 12:00:04 +01:00
|
|
|
gsd-disk-space-helper.h \
|
2016-11-16 15:07:10 +01:00
|
|
|
gsd-disk-space-helper.c \
|
|
|
|
info-cleanup.h \
|
|
|
|
info-cleanup.c
|
2010-12-12 14:08:40 -05:00
|
|
|
|
2011-02-19 16:46:26 +00:00
|
|
|
libinfo_la_LIBADD = $(PANEL_LIBS) $(INFO_PANEL_LIBS)
|
2010-12-12 14:08:40 -05:00
|
|
|
|
2016-11-16 15:20:39 +01:00
|
|
|
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)\""
|
|
|
|
|
2013-01-07 16:09:44 -05:00
|
|
|
resource_files = $(shell glib-compile-resources --sourcedir=$(srcdir) --generate-dependencies $(srcdir)/info.gresource.xml)
|
2013-01-04 15:05:07 +01:00
|
|
|
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 $<
|
2010-12-12 14:08:40 -05:00
|
|
|
|
|
|
|
@INTLTOOL_DESKTOP_RULE@
|
|
|
|
|
|
|
|
desktopdir = $(datadir)/applications
|
|
|
|
desktop_in_files = gnome-info-panel.desktop.in
|
|
|
|
desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
|
|
|
|
|
2012-04-19 11:59:41 +01:00
|
|
|
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)
|
2010-12-12 14:08:40 -05:00
|
|
|
|
2013-01-04 15:05:07 +01:00
|
|
|
CLEANFILES = $(desktop_in_files) $(desktop_DATA) $(BUILT_SOURCES)
|
2016-11-16 15:20:39 +01:00
|
|
|
EXTRA_DIST = $(resource_files) info.gresource.xml info-cleanup-test.txt
|
2011-05-17 15:19:46 +01:00
|
|
|
|
2010-12-12 14:08:40 -05:00
|
|
|
-include $(top_srcdir)/git.mk
|