Makefile.am 2 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
15
16
17
18
19
20
21
EGGFILES =                      \
	egg-screen-exec.h       \
	egg-screen-exec.c       \
	egg-screen-help.h       \
	egg-screen-help.c       \
	egg-screen-url.h        \
	egg-screen-url.c

22
libclock_applet_2_la_SOURCES = \
23
	clock.c \
24
	$(EGGFILES)
25

26
libclock_applet_2_la_LDFLAGS = -module -avoid-version -no-undefined
27
libclock_applet_2_la_LIBADD =			\
28
	../../libpanel-applet/libpanel-applet-2.la	\
29
	$(CLOCK_LIBS)
30

31
appletdir = $(libdir)
32
applet_LTLIBRARIES = libclock-applet-2.la
33

34
GNOME_ClockApplet_Factory.server.in: GNOME_ClockApplet_Factory.server.in.in
35
	sed -e "s|\@APPLET_LIBDIR\@|$(appletdir)|" $< > $@
36

37
38
uidir 	= $(datadir)/gnome-2.0/ui
ui_DATA	= GNOME_ClockApplet.xml	
39

40
serverdir       = $(libdir)/bonobo/servers
41
server_in_files = GNOME_ClockApplet_Factory.server.in
42
server_DATA     = $(server_in_files:.server.in=.server)
43

44
@INTLTOOL_SERVER_RULE@
45

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

@INTLTOOL_SCHEMAS_RULE@

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

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

69
70
CLEANFILES = $(server_in_files) $(server_DATA)

71
72
73
74
EGGDIR = $(srcdir)/../../../libegg/libegg/screen-exec

regenerate-built-sources:
	EGGFILES="$(EGGFILES)" EGGDIR="$(EGGDIR)" $(srcdir)/update-from-egg.sh