summaryrefslogtreecommitdiff
path: root/mini-commander/src/Makefile.am
blob: 6b54a87456cc1181ae86aa202e853022f2fef247 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
## Process this file with automake to produce Makefile.in

INCLUDES = 						\
	 $(GNOME_APPLETS_CFLAGS)			\
	 $(LIBGLADE_CFLAGS)				\
	$(WARN_CFLAGS)					\
	-I.						\
	-I$(srcdir)					\
	-I$(top_srcdir)/screen-exec			\
	-DGNOMELOCALEDIR=\""$(prefix)/$(DATADIRNAME)/locale"\"	\
	-DMC_GLADEDIR=\""$(gladedir)"\"			\
	$(GNOME_INCLUDEDIR)

libexec_PROGRAMS = mini_commander_applet

tooldir = $(libexecdir)/gnome-applets
tool_PROGRAMS = mc-install-default-macros

mini_commander_applet_SOURCES =			\
	about.c					\
	about.h					\
	cmd_completion.c			\
	cmd_completion.h			\
	command_line.c				\
	command_line.h				\
	exec.c					\
	exec.h					\
	mini-commander_applet.c			\
	mini-commander_applet.h			\
	help.c					\
	help.h					\
	history.c				\
	history.h				\
	macro.c					\
	macro.h					\
	preferences.c				\
	preferences.h				\
	mc-default-macros.h

mini_commander_applet_LDADD =				\
	$(top_builddir)/screen-exec/libscreen-exec.la	\
	$(GNOME_APPLETS_LIBS)				\
	$(LIBGLADE_LIBS)

mc_install_default_macros_SOURCES =	\
	mc-install-default-macros.c	\
	mc-default-macros.h

mc_install_default_macros_LDADD =	\
	$(GNOME_APPLETS_LIBS)

gladedir   = $(datadir)/gen_util
glade_DATA = mini-commander.glade

# currently the installation of these bitmaps wouldn't be necessary
bitmapsdir = $(datadir)/pixmaps/mini-commander
bitmaps_DATA = browser-mini.xpm history-mini.xpm

pixmapdir = $(datadir)/pixmaps
pixmap_DATA = gnome-mini-commander.png

serverdir       = $(libdir)/bonobo/servers
server_in_files = GNOME_MiniCommanderApplet.server.in
server_DATA     = $(server_in_files:.server.in=.server)

$(server_in_files): $(server_in_files:.server.in=.server.in.in)
	sed -e "s|\@LIBEXECDIR\@|$(libexecdir)|" $< > $@

CLEANFILES = $(server_in_files) $(server_DATA)

schemasdir   = @GCONF_SCHEMA_FILE_DIR@
schemas_in_files = mini-commander.schemas.in
schemas_DATA = $(schemas_in_files:.schemas.in=.schemas)

@INTLTOOL_SCHEMAS_RULE@

uidir = $(datadir)/gnome-2.0/ui
ui_DATA = GNOME_MiniCommanderApplet.xml

install-data-local:
	GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE) $(GCONFTOOL) --makefile-install-rule $(schemas_DATA) ;
	GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE) $(top_builddir)/mini-commander/src/mc-install-default-macros

@INTLTOOL_SERVER_RULE@

EXTRA_DIST =					\
	GNOME_MiniCommanderApplet.server.in.in	\
	$(pixmap_DATA)				\
	$(bitmaps_DATA)				\
	$(ui_DATA)				\
	$(glade_DATA)				\
	$(schemas_in_files)