Makefile.am 2.18 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

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

23
CLOCK_SOURCES = clock.c $(CALENDAR_SOURCES)
24

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

29
30
31
32
33
34
35
36
37
38
39
40
if CLOCK_INPROCESS
APPLET_TYPE     = shlib
APPLET_LOCATION = $(libdir)/libclock-applet.so

lib_LTLIBRARIES = libclock-applet.la
libclock_applet_la_SOURCES = $(CLOCK_SOURCES)
libclock_applet_la_LIBADD = $(CLOCK_LDADD)
libclock_applet_la_CFLAGS =
else
APPLET_TYPE     = exe
APPLET_LOCATION = $(libexecdir)/clock-applet

Mark McLoughlin's avatar
Mark McLoughlin committed
41
libexec_PROGRAMS = clock-applet
42
43
44
45
clock_applet_SOURCES = $(CLOCK_SOURCES)
clock_applet_LDADD = $(CLOCK_LDADD)
clock_applet_CFLAGS =
endif
46

47
48
uidir 	= $(datadir)/gnome-2.0/ui
ui_DATA	= GNOME_ClockApplet.xml	
49

50
serverdir       = $(libdir)/bonobo/servers
51
server_in_files = GNOME_ClockApplet_Factory.server.in
52
server_DATA     = $(server_in_files:.server.in=.server)
53

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

60
@INTLTOOL_SERVER_RULE@
61

62
schemasdir       = $(GCONF_SCHEMA_FILE_DIR)
63
schemas_in_files = clock.schemas.in
64
65
66
67
schemas_DATA     = $(schemas_in_files:.schemas.in=.schemas)

@INTLTOOL_SCHEMAS_RULE@

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

80
81
EXTRA_DIST =						\
	GNOME_ClockApplet_Factory.server.in.in		\
82
	$(schemas_in_files)				\
83
	$(ui_DATA)
84

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