Makefile.am 2.49 KB
Newer Older
1
SUBDIRS = help
Jacob Berkman's avatar
Jacob Berkman committed
2

3
INCLUDES = 					\
4
5
	-I$(srcdir)/../../libpanel-applet 	\
	-I$(top_builddir)/libpanel-applet 	\
6
	$(DISABLE_DEPRECATED_CFLAGS)		\
7
8
9
10
	$(GNOME_INCLUDEDIR) 			\
	$(WARN_CFLAGS) 				\
	$(WNCKLET_CFLAGS) 			\
	-DPAGER_GLADEDIR=\""$(gladedir)"\"	\
11
	-DTASKLIST_GLADEDIR=\""$(gladedir)"\"	\
12
	-DGNOME_ICONDIR=\""$(datadir)/pixmaps\""\
13
14
	-DGNOMELOCALEDIR=\""$(datadir)/locale"\" 

15
16
17
18
19
20
21
DISABLE_DEPRECATED_CFLAGS =			\
	-DG_DISABLE_DEPRECATED			\
	-DGDK_DISABLE_DEPRECATED		\
	-DGTK_DISABLE_DEPRECATED		\
	-DGDK_PIXBUF_DISABLE_DEPRECATED		\
	-DGNOME_DISABLE_DEPRECATED

22
gladedir   = $(datadir)/gen_util
23
glade_DATA = pager.glade tasklist.glade
24

25
libgen_util_applet_2_la_SOURCES = \
26
27
28
29
30
31
32
33
34
35
36
37
38
	main.c \
	clock.c \
	clock.h	\
	pager.c	\
	pager.h	\
	tasklist.c \
	tasklist.h \
	mailcheck.c \
	mailcheck.h \
	popcheck.c \
	popcheck.h \
	remote-helper.c \
	remote-helper.h
39

40
41
libgen_util_applet_2_la_LDFLAGS = -module -avoid-version
libgen_util_applet_2_la_LIBADD =			\
42
43
	../../libpanel-applet/libpanel-applet-2.la	\
	$(WNCKLET_LIBS)
44

45
46
appletdir = $(libdir)
applet_LTLIBRARIES = libgen_util_applet-2.la
47

48
49
GNOME_GenUtilApplet_Factory.server.in: GNOME_GenUtilApplet_Factory.server.in.in
	sed -e "s|\@APPLET_LIBDIR\@|$(appletdir)|" $< > $@
50

51
52
53
PRINTER_BITMAPS = print.xpm
MAILCHECK_BITMAPS = email.png email-e.png tux-anim.png email-eclouds.png \
                    email-tiny.png eclouds.png
54

55
56
57
mailcheckbitmapsdir = $(datadir)/pixmaps/mailcheck
mailcheckbitmaps_DATA = $(MAILCHECK_BITMAPS)

58
59
60
61
62
63
soundlistdir = $(sysconfdir)/sound/events
soundlist_in_files = mailcheck.soundlist.in
soundlist_DATA = $(soundlist_in_files:.soundlist.in=.soundlist)

@INTLTOOL_SOUNDLIST_RULE@

64
schemadir   = $(sysconfdir)/gconf/schemas
Gediminas Paulauskas's avatar
Gediminas Paulauskas committed
65
schema_DATA = mailcheck.schemas pager.schemas tasklist.schemas clock.schemas
66

67
68
69
70
uidir 		= $(datadir)/gnome-2.0/ui
ui_DATA		= \
	GNOME_ClockApplet.xml		\
	GNOME_MailCheckApplet.xml	\
71
72
	GNOME_PagerApplet.xml		\
	GNOME_TasklistApplet.xml	
73

74
75
76
serverdir       = $(libdir)/bonobo/servers
server_in_files = GNOME_GenUtilApplet_Factory.server.in
server_DATA     = $(server_in_files:.server.in=.server)
77

78
@INTLTOOL_SERVER_RULE@
79

80
# don't do this if we are building in eg. rpm
81
install-data-local:
82
83
	if test -z "$(DESTDIR)" ; then \
		for p in $(schema_DATA) ; do \
Mark McLoughlin's avatar
Mark McLoughlin committed
84
		        GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE) $(GCONFTOOL) --makefile-install-rule $(srcdir)/$$p ; \
85
86
87
88
89
90
		done \
	fi

EXTRA_DIST = GNOME_GenUtilApplet_Factory.server.in.in	\
	$(PRINTER_BITMAPS)				\
	$(MAILCHECK_BITMAPS)				\
91
	$(soundlist_in_files)				\
92
	$(schema_DATA)					\
93
94
	$(glade_DATA)					\
	$(ui_DATA)