Makefile.am 2.76 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)"\"	\
Satyajit Kanungo's avatar
Satyajit Kanungo committed
12
13
14
15
	-DDATADIR=\""$(datadir)"\"		\
	-DLIBDIR=\""$(libdir)"\"		\
	-DSYSCONFDIR=\""$(sysconfdir)"\"	\
	-DPREFIX=\""$(prefix)"\"		\
16
	-DGNOME_ICONDIR=\""$(datadir)/pixmaps\""\
17
18
	-DGNOMELOCALEDIR=\""$(datadir)/locale"\" 

19
20
21
22
23
24
25
DISABLE_DEPRECATED_CFLAGS =			\
	-DG_DISABLE_DEPRECATED			\
	-DGDK_DISABLE_DEPRECATED		\
	-DGTK_DISABLE_DEPRECATED		\
	-DGDK_PIXBUF_DISABLE_DEPRECATED		\
	-DGNOME_DISABLE_DEPRECATED

26
gladedir   = $(datadir)/gen_util
27
glade_DATA = pager.glade tasklist.glade
28

29
libgen_util_applet_2_la_SOURCES = \
30
31
32
33
34
35
36
37
38
39
40
41
42
	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
43

44
45
libgen_util_applet_2_la_LDFLAGS = -module -avoid-version
libgen_util_applet_2_la_LIBADD =			\
46
47
	../../libpanel-applet/libpanel-applet-2.la	\
	$(WNCKLET_LIBS)
48

49
50
appletdir = $(libdir)
applet_LTLIBRARIES = libgen_util_applet-2.la
51

52
53
GNOME_GenUtilApplet_Factory.server.in: GNOME_GenUtilApplet_Factory.server.in.in
	sed -e "s|\@APPLET_LIBDIR\@|$(appletdir)|" $< > $@
54

55
56
57
PRINTER_BITMAPS = print.xpm
MAILCHECK_BITMAPS = email.png email-e.png tux-anim.png email-eclouds.png \
                    email-tiny.png eclouds.png
58

59
60
61
mailcheckbitmapsdir = $(datadir)/pixmaps/mailcheck
mailcheckbitmaps_DATA = $(MAILCHECK_BITMAPS)

62
63
64
65
66
67
soundlistdir = $(sysconfdir)/sound/events
soundlist_in_files = mailcheck.soundlist.in
soundlist_DATA = $(soundlist_in_files:.soundlist.in=.soundlist)

@INTLTOOL_SOUNDLIST_RULE@

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

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

79
@INTLTOOL_SERVER_RULE@
80

81
82
83
84
85
86
87
88
89
schemasdir       = $(sysconfdir)/gconf/schemas
schemas_in_files = mailcheck.schemas.in		\
		   pager.schemas.in		\
		   tasklist.schemas.in		\
		   clock.schemas.in
schemas_DATA     = $(schemas_in_files:.schemas.in=.schemas)

@INTLTOOL_SCHEMAS_RULE@

90
# don't do this if we are building in eg. rpm
91
install-data-local:
92
	if test -z "$(DESTDIR)" ; then \
93
94
		for p in $(schemas_DATA) ; do \
		        GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE) $(GCONFTOOL) --makefile-install-rule $(top_builddir)/applets/gen_util/$$p ; \
95
96
97
98
99
100
		done \
	fi

EXTRA_DIST = GNOME_GenUtilApplet_Factory.server.in.in	\
	$(PRINTER_BITMAPS)				\
	$(MAILCHECK_BITMAPS)				\
101
	$(soundlist_in_files)				\
102
	$(schemas_in_files)				\
103
104
	$(glade_DATA)					\
	$(ui_DATA)