Makefile.am 2.28 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
if CLOCK_INPROCESS
APPLET_TYPE     = shlib
31
APPLET_LOCATION = $(pkglibdir)/libclock-applet.so
32

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

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

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

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

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

62
@INTLTOOL_SERVER_RULE@
63

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

@INTLTOOL_SCHEMAS_RULE@

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

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

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