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

14
libclock_applet_2_la_SOURCES = clock.c
15

16
libclock_applet_2_la_LDFLAGS = -module -avoid-version -no-undefined
17
libclock_applet_2_la_LIBADD =			\
18
	../../libpanel-applet/libpanel-applet-2.la	\
19
	$(CLOCK_LIBS)
20

21
appletdir = $(libdir)
22
applet_LTLIBRARIES = libclock-applet-2.la
23

24
GNOME_ClockApplet_Factory.server.in: GNOME_ClockApplet_Factory.server.in.in
25
	sed -e "s|\@APPLET_LIBDIR\@|$(appletdir)|" $< > $@
26

27
28
uidir 	= $(datadir)/gnome-2.0/ui
ui_DATA	= GNOME_ClockApplet.xml	
29

30
serverdir       = $(libdir)/bonobo/servers
31
server_in_files = GNOME_ClockApplet_Factory.server.in
32
server_DATA     = $(server_in_files:.server.in=.server)
33

34
@INTLTOOL_SERVER_RULE@
35

36
schemasdir       = $(GCONF_SCHEMA_FILE_DIR)
37
schemas_in_files = clock.schemas.in
38
39
40
41
schemas_DATA     = $(schemas_in_files:.schemas.in=.schemas)

@INTLTOOL_SCHEMAS_RULE@

42
if GCONF_SCHEMAS_INSTALL
43
# don't do this if we are building in eg. rpm
44
install-data-local:
45
	if test -z "$(DESTDIR)" ; then \
46
		for p in $(schemas_DATA) ; do \
47
		        GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE) $(GCONFTOOL) --makefile-install-rule $(top_builddir)/applets/clock/$$p ; \
48
49
		done \
	fi
50
51
52
else
install-data-local:
endif
53

54
55
EXTRA_DIST =						\
	GNOME_ClockApplet_Factory.server.in.in		\
56
	$(schemas_in_files)				\
57
	$(ui_DATA)
58

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