SUBDIRS = images

# Plugin UI file
devhelp_uidir = $(anjuta_ui_dir)
dist_devhelp_ui_DATA = anjuta-devhelp.ui anjuta-devhelp-simple.ui

# Plugin description file
plugin_in_files = anjuta-devhelp.plugin.in
%.plugin: %.plugin.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -d -u -c $(top_builddir)/po/.intltool-merge-cache

devhelp_plugindir = $(anjuta_plugin_dir)
dist_devhelp_plugin_DATA = $(plugin_in_files:.plugin.in=.plugin)

# Include paths
AM_CPPFLAGS = \
	$(WARN_CFLAGS) \
	$(DEPRECATED_FLAGS) \
	$(LIBANJUTA_CFLAGS)

if HAVE_PLUGIN_DEVHELP
AM_CPPFLAGS += $(PLUGIN_DEVHELP_CFLAGS)
else
AM_CPPFLAGS += -DDISABLE_EMBEDDED_DEVHELP
endif

# Where to install the plugin
plugindir = $(anjuta_plugin_dir)

# The plugin
plugin_LTLIBRARIES = libanjuta-devhelp.la

libanjuta_devhelp_la_LDFLAGS = $(ANJUTA_PLUGIN_LDFLAGS)

# Plugin sources
libanjuta_devhelp_la_SOURCES = \
	plugin.c \
	plugin.h

# Plugin dependencies
libanjuta_devhelp_la_LIBADD = \
	$(LIBANJUTA_LIBS) \
	$(PLUGIN_DEVHELP_LIBS)

EXTRA_DIST = \
	$(plugin_in_files)

-include $(top_srcdir)/git.mk
