diff --git a/gnoemoe/Makefile.am b/gnoemoe/Makefile.am index a603135..a4ca489 100644 --- a/gnoemoe/Makefile.am +++ b/gnoemoe/Makefile.am @@ -8,7 +8,7 @@ INCLUDES = \ -DPACKAGE_LOCALE_DIR=\""$(prefix)/$(DATADIRNAME)/locale"\" \ @PACKAGE_CFLAGS@ \ @NOTIFY_CFLAGS@ \ - @RUBYINCLUDE@ + @RUBY_CFLAGS@ bin_PROGRAMS = gnoemoe BUILT_SOURCES = gm-marshal.c gm-marshal.h @@ -35,13 +35,16 @@ gnoemoe_SOURCES += $(BUILT_SOURCES) \ gm-debug.c gm-debug.h \ list.c list.h + EXTRA_DIST = gm-marshal.list \ widgets/Makefile.include \ dialogs/Makefile.include \ mcp/Makefile.include \ mcp/Makefile.classes -if HAVE_SCRIPT +gnoemoe_LDADD = @PACKAGE_LIBS@ $(INTLLIBS) @RUBY_LIBS@ @NOTIFY_LIBS@ parser/libparser.la + +if HAS_RUBY gnoemoe_SOURCES += gm-scripts.c gm-scripts.h endif @@ -52,8 +55,6 @@ gm-marshal.c: gm-marshal.list $(GLIB_GENMARSHAL) echo "#include \"gm-marshal.h\"" > $@ && \ $(GLIB_GENMARSHAL) $< --body --prefix=gm_marshal >> $@ -gnoemoe_LDADD = @PACKAGE_LIBS@ $(INTLLIBS) @RUBYLINK@ @NOTIFY_LIBS@ parser/libparser.la - CLEANFILES += $(BUILT_SOURCES) dist-hook: