[anjuta] Allow to compile yacc and lex files, Fix a problem when compiling aliases files
- From: Sebastien Granjoux <sgranjoux src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [anjuta] Allow to compile yacc and lex files, Fix a problem when compiling aliases files
- Date: Thu, 13 Aug 2009 20:43:15 +0000 (UTC)
commit 486cfa83bcdd256133b69be73572e8390bf0912d
Author: Sébastien Granjoux <seb sfo free fr>
Date: Thu Aug 13 19:12:17 2009 +0200
Allow to compile yacc and lex files, Fix a problem when compiling aliases files
plugins/build-basic-autotools/plugin.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/plugins/build-basic-autotools/plugin.c b/plugins/build-basic-autotools/plugin.c
index e1f07b9..b800860 100644
--- a/plugins/build-basic-autotools/plugin.c
+++ b/plugins/build-basic-autotools/plugin.c
@@ -1744,6 +1744,8 @@ build_compile_file (BasicAutotoolsPlugin *plugin, const gchar *filename)
g_hash_table_insert (target_ext, ".cxx", ".o");
g_hash_table_insert (target_ext, ".c++", ".o");
g_hash_table_insert (target_ext, ".cc", ".o");
+ g_hash_table_insert (target_ext, ".y", ".o");
+ g_hash_table_insert (target_ext, ".l", ".o");
g_hash_table_insert (target_ext, ".in", "");
g_hash_table_insert (target_ext, ".in.in", ".in");
g_hash_table_insert (target_ext, ".la", ".la");
@@ -3050,7 +3052,8 @@ value_added_current_editor (AnjutaPlugin *plugin, const char *name,
filename = g_file_get_path(file);
g_object_unref (file);
g_return_if_fail (filename != NULL);
- ba_plugin->current_editor_filename = filename;
+ ba_plugin->current_editor_filename = anjuta_util_get_real_path (filename);
+ g_free (filename);
update_module_ui (ba_plugin);
}
g_idle_add (on_update_indicators_idle, plugin);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]