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

3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
INCLUDES = 						\
	-I$(srcdir)/../../libpanel-applet 		\
	-I$(top_builddir)/libpanel-applet 		\
	$(DISABLE_DEPRECATED_CFLAGS)			\
	$(GNOME_INCLUDEDIR) 				\
	$(WARN_CFLAGS) 					\
	$(WNCKLET_CFLAGS) 				\
	-DPAGER_GLADEDIR=\""$(gladedir)"\"		\
	-DTASKLIST_GLADEDIR=\""$(gladedir)"\"		\
	-DDATADIR=\""$(datadir)"\"			\
	-DLIBDIR=\""$(libdir)"\"			\
	-DSYSCONFDIR=\""$(sysconfdir)"\"		\
	-DPREFIX=\""$(prefix)"\"				\
	-DGNOME_ICONDIR=\""$(datadir)/pixmaps\""		\
	-DGNOMELOCALEDIR=\""$(prefix)/$(DATADIRNAME)/locale"\" 
18

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
	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 \
42
43
	remote-helper.h \
	multihead-hacks.h
44

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

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

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

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

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

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

@INTLTOOL_SOUNDLIST_RULE@

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

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

80
@INTLTOOL_SERVER_RULE@
81

82
83
84
85
86
87
88
89
90
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@

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

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