Makefile.am 2.33 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
	-DDATADIR=\""$(datadir)"\"			\
	-DLIBDIR=\""$(libdir)"\"			\
	-DSYSCONFDIR=\""$(sysconfdir)"\"		\
11
12
13
	-DPREFIX=\""$(prefix)"\"			\
	-DGNOMELOCALEDIR=\""$(prefix)/$(DATADIRNAME)/locale"\"  \
	-DCLOCK_TIME_UTILITY="\"$(CLOCK_TIME_UTILITY)\""
14

Mark McLoughlin's avatar
Mark McLoughlin committed
15
16
17
18
19
20
21
22
23
if HAVE_LIBECAL
CALENDAR_SOURCES =		\
	calendar-client.c	\
	calendar-client.h	\
	calendar-sources.c	\
	calendar-sources.h	\
	calendar-debug.h
endif

24
CLOCK_SOURCES = clock.c $(CALENDAR_SOURCES)
25

26
CLOCK_LDADD =						\
27
	../../libpanel-applet/libpanel-applet-2.la	\
28
	$(CLOCK_LIBS)
29

30
31
if CLOCK_INPROCESS
APPLET_TYPE     = shlib
32
APPLET_LOCATION = $(pkglibdir)/libclock-applet.so
33

34
35
clock_appletlibdir = $(pkglibdir)
clock_appletlib_LTLIBRARIES = libclock-applet.la
36
37
libclock_applet_la_SOURCES = $(CLOCK_SOURCES)
libclock_applet_la_LIBADD = $(CLOCK_LDADD)
38
libclock_applet_la_LDFLAGS = -module -avoid-version
39
40
41
42
43
libclock_applet_la_CFLAGS =
else
APPLET_TYPE     = exe
APPLET_LOCATION = $(libexecdir)/clock-applet

Mark McLoughlin's avatar
Mark McLoughlin committed
44
libexec_PROGRAMS = clock-applet
45
46
47
48
clock_applet_SOURCES = $(CLOCK_SOURCES)
clock_applet_LDADD = $(CLOCK_LDADD)
clock_applet_CFLAGS =
endif
49

50
51
uidir 	= $(datadir)/gnome-2.0/ui
ui_DATA	= GNOME_ClockApplet.xml	
52

53
serverdir       = $(libdir)/bonobo/servers
54
server_in_files = GNOME_ClockApplet_Factory.server.in
55
server_DATA     = $(server_in_files:.server.in=.server)
56

57
58
59
$(server_in_files): $(server_in_files).in Makefile
	sed -e "s|\@LOCATION\@|$(APPLET_LOCATION)|" \
	    -e "s|\@TYPE\@|$(APPLET_TYPE)|" \
60
61
62
	    -e "s|\@VERSION\@|$(PACKAGE_VERSION)|" \
	    $< > $@

63
@INTLTOOL_SERVER_RULE@
64

65
schemasdir       = $(GCONF_SCHEMA_FILE_DIR)
66
schemas_in_files = clock.schemas.in
67
68
69
70
schemas_DATA     = $(schemas_in_files:.schemas.in=.schemas)

@INTLTOOL_SCHEMAS_RULE@

71
if GCONF_SCHEMAS_INSTALL
72
# don't do this if we are building in eg. rpm
73
install-data-local:
74
	if test -z "$(DESTDIR)" ; then \
75
		for p in $(schemas_DATA) ; do \
76
		        GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE) $(GCONFTOOL) --makefile-install-rule $(top_builddir)/applets/clock/$$p ; \
77
78
		done \
	fi
79
80
81
else
install-data-local:
endif
82

83
84
EXTRA_DIST =						\
	GNOME_ClockApplet_Factory.server.in.in		\
85
	$(schemas_in_files)				\
86
	$(ui_DATA)
87

88
CLEANFILES = $(server_in_files) $(server_DATA) $(schemas_DATA)