Makefile.am 1.72 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
GNOME_ClockApplet_Factory.server.in: GNOME_ClockApplet_Factory.server.in.in
Mark McLoughlin's avatar
Mark McLoughlin committed
32
	sed -e "s|\@LIBEXECDIR\@|$(libexecdir)|" $< > $@
33

34
35
uidir 	= $(datadir)/gnome-2.0/ui
ui_DATA	= GNOME_ClockApplet.xml	
36

37
serverdir       = $(libdir)/bonobo/servers
38
server_in_files = GNOME_ClockApplet_Factory.server.in
39
server_DATA     = $(server_in_files:.server.in=.server)
40

41
@INTLTOOL_SERVER_RULE@
42

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

@INTLTOOL_SCHEMAS_RULE@

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

61
62
EXTRA_DIST =						\
	GNOME_ClockApplet_Factory.server.in.in		\
63
	$(schemas_in_files)				\
64
	$(ui_DATA)
65

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