Makefile.am 1.73 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
23
if HAVE_LIBECAL
CALENDAR_SOURCES =		\
	calendar-client.c	\
	calendar-client.h	\
	calendar-sources.c	\
	calendar-sources.h	\
	calendar-debug.h
endif

clock_applet_SOURCES = clock.c $(CALENDAR_SOURCES)
24

Mark McLoughlin's avatar
Mark McLoughlin committed
25
clock_applet_LDADD =					\
26
	../../libpanel-applet/libpanel-applet-2.la	\
27
	$(CLOCK_LIBS)
28

Mark McLoughlin's avatar
Mark McLoughlin committed
29
libexec_PROGRAMS = clock-applet
30

31
32
uidir 	= $(datadir)/gnome-2.0/ui
ui_DATA	= GNOME_ClockApplet.xml	
33

34
serverdir       = $(libdir)/bonobo/servers
35
server_in_files = GNOME_ClockApplet_Factory.server.in
36
server_DATA     = $(server_in_files:.server.in=.server)
37

38
39
40
41
42
$(server_in_files): $(server_in_files).in
	sed -e "s|\@LIBEXECDIR\@|$(libexecdir)|" \
	    -e "s|\@VERSION\@|$(PACKAGE_VERSION)|" \
	    $< > $@

43
@INTLTOOL_SERVER_RULE@
44

45
schemasdir       = $(GCONF_SCHEMA_FILE_DIR)
46
schemas_in_files = clock.schemas.in
47
48
49
50
schemas_DATA     = $(schemas_in_files:.schemas.in=.schemas)

@INTLTOOL_SCHEMAS_RULE@

51
if GCONF_SCHEMAS_INSTALL
52
# don't do this if we are building in eg. rpm
53
install-data-local:
54
	if test -z "$(DESTDIR)" ; then \
55
		for p in $(schemas_DATA) ; do \
56
		        GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE) $(GCONFTOOL) --makefile-install-rule $(top_builddir)/applets/clock/$$p ; \
57
58
		done \
	fi
59
60
61
else
install-data-local:
endif
62

63
64
EXTRA_DIST =						\
	GNOME_ClockApplet_Factory.server.in.in		\
65
	$(schemas_in_files)				\
66
	$(ui_DATA)
67

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