Makefile.am 2.8 KB
Newer Older
1
2
3
4
5
6
INCLUDES = 						\
	-I$(srcdir)/../../libpanel-applet 		\
	-I$(top_builddir)/libpanel-applet 		\
	$(DISABLE_DEPRECATED_CFLAGS)			\
	$(GNOME_INCLUDEDIR) 				\
	$(WARN_CFLAGS) 					\
7
	$(GEN_UTIL_CFLAGS) 				\
8
9
10
11
12
13
	-DDATADIR=\""$(datadir)"\"			\
	-DLIBDIR=\""$(libdir)"\"			\
	-DSYSCONFDIR=\""$(sysconfdir)"\"		\
	-DPREFIX=\""$(prefix)"\"				\
	-DGNOME_ICONDIR=\""$(datadir)/pixmaps\""		\
	-DGNOMELOCALEDIR=\""$(prefix)/$(DATADIRNAME)/locale"\" 
14

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
23
24
25
26
27
28
29
EGGFILES =                      \
	egg-screen-exec.h       \
	egg-screen-exec.c       \
	egg-screen-help.h       \
	egg-screen-help.c       \
	egg-screen-url.h        \
	egg-screen-url.c

30
libgen_util_applet_2_la_SOURCES = \
31
32
33
34
35
36
37
38
	main.c \
	clock.c \
	clock.h	\
	mailcheck.c \
	mailcheck.h \
	popcheck.c \
	popcheck.h \
	remote-helper.c \
39
	remote-helper.h \
40
	$(EGGFILES)
41

42
43
libgen_util_applet_2_la_LDFLAGS = -module -avoid-version
libgen_util_applet_2_la_LIBADD =			\
44
	../../libpanel-applet/libpanel-applet-2.la	\
45
	$(GEN_UTIL_LIBS)
46

47
48
appletdir = $(libdir)
applet_LTLIBRARIES = libgen_util_applet-2.la
49

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

53
54
MAILCHECK_BITMAPS = email.png email-e.png tux-anim.png email-eclouds.png \
                    email-tiny.png eclouds.png
55

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

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

@INTLTOOL_SOUNDLIST_RULE@

65
66
67
uidir 		= $(datadir)/gnome-2.0/ui
ui_DATA		= \
	GNOME_ClockApplet.xml		\
68
	GNOME_MailCheckApplet.xml
69

70
71
72
serverdir       = $(libdir)/bonobo/servers
server_in_files = GNOME_GenUtilApplet_Factory.server.in
server_DATA     = $(server_in_files:.server.in=.server)
73

74
@INTLTOOL_SERVER_RULE@
75

76
77
78
79
80
81
82
schemasdir       = $(sysconfdir)/gconf/schemas
schemas_in_files = mailcheck.schemas.in		\
		   clock.schemas.in
schemas_DATA     = $(schemas_in_files:.schemas.in=.schemas)

@INTLTOOL_SCHEMAS_RULE@

83
# don't do this if we are building in eg. rpm
84
install-data-local:
85
	if test -z "$(DESTDIR)" ; then \
86
87
		for p in $(schemas_DATA) ; do \
		        GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE) $(GCONFTOOL) --makefile-install-rule $(top_builddir)/applets/gen_util/$$p ; \
88
89
90
91
92
		done \
	fi

EXTRA_DIST = GNOME_GenUtilApplet_Factory.server.in.in	\
	$(MAILCHECK_BITMAPS)				\
93
	$(soundlist_in_files)				\
94
	$(schemas_in_files)				\
95
	$(ui_DATA)
96

97
98
CLEANFILES = $(server_in_files) $(server_DATA)

99
100
101
102
EGGDIR = $(srcdir)/../../../libegg/libegg/screen-exec

regenerate-built-sources:
	EGGFILES="$(EGGFILES)" EGGDIR="$(EGGDIR)" $(srcdir)/update-from-egg.sh