1include $(top_srcdir)/build/vars.build.mk 2plugin = webhelper 3 4geanyplugins_LTLIBRARIES = webhelper.la 5 6 7GLIB_MKENUMS = @GLIB_MKENUMS@ 8 9 10sources = gwh-browser.c \ 11 gwh-keybindings.c \ 12 gwh-plugin.c \ 13 gwh-settings.c \ 14 gwh-utils.c 15headers = gwh-browser.h \ 16 gwh-keybindings.h \ 17 gwh-plugin.h \ 18 gwh-settings.h \ 19 gwh-utils.h 20autogen_sources = gwh-enum-types.c 21autogen_headers = gwh-enum-types.h 22 23EXTRA_DIST = gwh-enum-types.c.tpl \ 24 gwh-enum-types.h.tpl 25 26 27webhelper_la_SOURCES = $(autogen_sources) \ 28 $(autogen_headers) \ 29 $(sources) \ 30 $(headers) 31webhelper_la_CPPFLAGS = $(AM_CPPFLAGS) \ 32 -I$(srcdir) -I$(builddir) \ 33 -DG_LOG_DOMAIN=\"WebHelper\" 34webhelper_la_CFLAGS = $(AM_CFLAGS) \ 35 $(WEBHELPER_CFLAGS) 36webhelper_la_LIBADD = $(COMMONLIBS) \ 37 $(WEBHELPER_LIBS) 38 39# These are generated in $(srcdir) because they are part of the distribution, 40# and should anyway only be regenerated if the .tpl changes, which is a 41# developer thing ,so if should be harmless. 42$(srcdir)/gwh-enum-types.c: $(srcdir)/gwh-enum-types.c.tpl gwh-enum-types.h $(headers) 43 $(AM_V_GEN)$(GLIB_MKENUMS) --template $< $(headers:%=$(srcdir)/%) > $@ 44$(srcdir)/gwh-enum-types.h: $(srcdir)/gwh-enum-types.h.tpl $(headers) 45 $(AM_V_GEN)$(GLIB_MKENUMS) --template $< $(headers:%=$(srcdir)/%) > $@ 46 47include $(top_srcdir)/build/cppcheck.mk 48