File: Makefile.am

package info (click to toggle)
gedit 0.5.4-1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 2,388 kB
  • ctags: 1,622
  • sloc: ansic: 10,760; sh: 4,975; makefile: 463; sed: 93
file content (43 lines) | stat: -rw-r--r-- 1,199 bytes parent folder | download
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
pluginlibdir = $(libexecdir)/gedit/plugins

pluginlib_LTLIBRARIES = libshell_plugin.la

plugin_FILES = shell.plugin

EXTRA_DIST = shell.plugin.in

pluginlib_DATA = $(plugin_FILES)

CLEANFILES = $(plugin_FILES)

INCLUDES = 						\
	-I$(top_srcdir)/src				\
	-I$(top_srcdir)/intl -I$(top_builddir)/intl	\
	-DGNOMELOCALEDIR=\""$(datadir)/locale"\" 	\
	-DLOCALEDIR=\"$(datadir)/locale\"		\
	-I$(includedir) $(GNOME_INCLUDEDIR)

CPPFLAGS = \
	-DBINDIR=\""$(bindir)"\" \
	-DDATADIR=\""$(datadir)"\" \
	-DPLUGINLIBDIR=\""$(pluginlibdir)"\"

libshell_plugin_la_SOURCES = \
	main.c

libshell_plugin_la_LIBADD = \
	@GNOME_LIBDIR@ @GNOMEUI_LIBS@

## We create the plugin files here and not from configure because we want
## to get the paths expanded correctly.  Macros like srcdir are given
## the value NONE in configure if the user doesn't specify them (this
## is an autoconf feature, not a bug).

%.plugin:%.plugin.in
## Use sed and then mv to avoid problems if the user interrupts.
	sed -e 's,\@bindir\@,$(bindir),g' \
	    -e 's,\@libdir\@,$(libdir),g' \
	    -e 's,\@plugindir\@,$(libexecdir)/go/plugins,g' \
	    -e 's,\@pluginlibdir\@,$(libexecdir)/gedit/plugins,g' \
	      < $< > tmp  && mv tmp $@