Makefile.am 2.11 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
	$(CLOCK_CFLAGS) 				\
8
9
10
11
12
	-DDATADIR=\""$(datadir)"\"			\
	-DLIBDIR=\""$(libdir)"\"			\
	-DSYSCONFDIR=\""$(sysconfdir)"\"		\
	-DPREFIX=\""$(prefix)"\"				\
	-DGNOMELOCALEDIR=\""$(prefix)/$(DATADIRNAME)/locale"\" 
13

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

21
22
23
24
25
26
27
28
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

29
libclock_applet_2_la_SOURCES = \
30
	clock.c \
31
	$(EGGFILES)
32

33
34
libclock_applet_2_la_LDFLAGS = -module -avoid-version
libclock_applet_2_la_LIBADD =			\
35
	../../libpanel-applet/libpanel-applet-2.la	\
36
	$(CLOCK_LIBS)
37

38
appletdir = $(libdir)
39
applet_LTLIBRARIES = libclock-applet-2.la
40

41
GNOME_ClockApplet_Factory.server.in: GNOME_ClockApplet_Factory.server.in.in
42
	sed -e "s|\@APPLET_LIBDIR\@|$(appletdir)|" $< > $@
43

44
45
uidir 	= $(datadir)/gnome-2.0/ui
ui_DATA	= GNOME_ClockApplet.xml	
46

47
serverdir       = $(libdir)/bonobo/servers
48
server_in_files = GNOME_ClockApplet_Factory.server.in
49
server_DATA     = $(server_in_files:.server.in=.server)
50

51
@INTLTOOL_SERVER_RULE@
52

53
schemasdir       = $(sysconfdir)/gconf/schemas
54
schemas_in_files = clock.schemas.in
55
56
57
58
schemas_DATA     = $(schemas_in_files:.schemas.in=.schemas)

@INTLTOOL_SCHEMAS_RULE@

59
# don't do this if we are building in eg. rpm
60
install-data-local:
61
	if test -z "$(DESTDIR)" ; then \
62
		for p in $(schemas_DATA) ; do \
63
		        GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE) $(GCONFTOOL) --makefile-install-rule $(top_builddir)/applets/clock/$$p ; \
64
65
66
		done \
	fi

67
68
EXTRA_DIST =						\
	GNOME_ClockApplet_Factory.server.in.in		\
69
	$(schemas_in_files)				\
70
	$(ui_DATA)
71

72
73
CLEANFILES = $(server_in_files) $(server_DATA)

74
75
76
77
EGGDIR = $(srcdir)/../../../libegg/libegg/screen-exec

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