From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Luka Newsgroups: gmane.emacs.help Subject: C++ projects: Automatically indexing -I files in existing make files Date: Fri, 12 Oct 2012 06:56:29 -0700 (PDT) Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1350050416 7807 80.91.229.3 (12 Oct 2012 14:00:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 12 Oct 2012 14:00:16 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Oct 12 16:00:23 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TMfmo-00087X-VP for geh-help-gnu-emacs@m.gmane.org; Fri, 12 Oct 2012 16:00:23 +0200 Original-Received: from localhost ([::1]:59735 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TMfmf-00021t-Hq for geh-help-gnu-emacs@m.gmane.org; Fri, 12 Oct 2012 10:00:13 -0400 Original-Received: by 10.224.70.131 with SMTP id d3mr2670953qaj.0.1350050189440; Fri, 12 Oct 2012 06:56:29 -0700 (PDT) Original-Received: by 10.236.155.70 with SMTP id i46mr649343yhk.3.1350050189419; Fri, 12 Oct 2012 06:56:29 -0700 (PDT) Original-Path: usenet.stanford.edu!l8no46485203qao.0!news-out.google.com!r17ni22505374qap.0!nntp.google.com!l8no46485198qao.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=128.33.22.28; posting-account=f87g0QoAAABfg361DxZaOc3NT3XyneZA Original-NNTP-Posting-Host: 128.33.22.28 User-Agent: G2/1.0 Injection-Date: Fri, 12 Oct 2012 13:56:29 +0000 Original-Xref: usenet.stanford.edu gnu.emacs.help:194871 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:87203 Archived-At: After reading: * A Gentle Introduction to CEDET:=20 http://alexott.net/en/writings/emacs-devenv/EmacsCedet.html#sec6 * A Functional Introduction to CEDET-EDE: http://epsilonvectorplusplus.wordpress.com/2012/04/27/a-functional-introduc= tion-to-cedet-ede/ I learn that when creating a project folder with an existing make file and = source code, I can have semantic index the files by either: 1. defining a simple EDE project with: ((ede-cpp-root-project "Test" :name "Test Project" :file "~/work/project/CMakeLists.txt" :include-path '("/" "/Common" "/Interfaces" "/Libs" ) :system-include-path '("~/exp/include") :spp-table '(("isUnix" . "") ("BOOST_TEST_DYN_LINK" . ""))) 2. or by specifying the include paths to semantic directly with (semantic-add-system-include "~/exp/include/boost_1_37" 'c++-mode) But both methods still require me to type the paths manually. Is there any = way to have Emacs automatically identify the include paths for semantic fro= m an existing make file? --- Background: ---=20 Some IDEs have a function to autodiscover "gcc -I" paths from an existing m= ake file. For example, in Eclipse, you can create a project on a path with = an existing make file and source code, and Eclipse would infer the include = paths for its "intellisense" when building the project (I presume Eclipse p= arses the output of GNU make to do this). I would like to do the same in Em= acs.