Add a function for getting relative paths from full paths.
[anjuta-git-plugin.git] / plugins / devhelp / Makefile.am
blobe31fbee9cba01bd33e8207165731b9d2f6621903
1 # Sample Makefile for a anjuta plugin.
3 # Plugin UI file
4 devhelp_uidir = $(anjuta_ui_dir)
5 devhelp_ui_DATA = anjuta-devhelp.ui anjuta-devhelp-simple.ui
7 # Plugin Icon file
8 devhelp_pixmapsdir = $(anjuta_image_dir)
9 devhelp_pixmaps_DATA = \
10         anjuta-devhelp-plugin.svg \
11         anjuta-devhelp-plugin-48.png \
12         anjuta-go-help-next-24.png \
13         anjuta-go-help-next-16.png \
14         anjuta-go-help-prev-24.png \
15         anjuta-go-help-prev-16.png
17 # Plugin description file
18 plugin_in_files = anjuta-devhelp.plugin.in
19 %.plugin: %.plugin.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -d -u -c $(top_builddir)/po/.intltool-merge-cache
21 devhelp_plugindir = $(anjuta_plugin_dir)
22 devhelp_plugin_DATA = $(plugin_in_files:.plugin.in=.plugin)
24 # Include paths
25 AM_CPPFLAGS = \
26         $(WARN_CFLAGS) \
27         $(DEPRECATED_FLAGS) \
28         $(LIBANJUTA_CFLAGS)
30 if HAVE_PLUGIN_DEVHELP
31 AM_CPPFLAGS += $(PLUGIN_DEVHELP_CFLAGS)
32 else
33 AM_CPPFLAGS += -DDISABLE_EMBEDDED_DEVHELP
34 endif
36 # Where to install the plugin
37 plugindir = $(anjuta_plugin_dir)
39 # The plugin
40 plugin_LTLIBRARIES = libanjuta-devhelp.la
42 libanjuta_devhelp_la_LDFLAGS = $(ANJUTA_PLUGIN_LDFLAGS)
44 # Plugin sources
45 libanjuta_devhelp_la_SOURCES = \
46         plugin.c \
47         plugin.h
49 if HAVE_PLUGIN_DEVHELP
50 libanjuta_devhelp_la_SOURCES += \
51         htmlview.c \
52         htmlview.h
53 endif
55 # Plugin dependencies
56 libanjuta_devhelp_la_LIBADD = \
57         $(GTK_LIBS) \
58         $(LIBANJUTA_LIBS)
60 if HAVE_PLUGIN_DEVHELP
61 libanjuta_devhelp_la_LIBADD += $(PLUGIN_DEVHELP_LIBS)
62 endif
64 EXTRA_DIST = \
65         $(plugin_in_files) \
66         $(devhelp_plugin_DATA) \
67         $(devhelp_ui_DATA) \
68         $(devhelp_pixmaps_DATA)