all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Reuben Thomas <rrt@sc3d.org>
To: 9323@debbugs.gnu.org
Subject: bug#9323: Non-recursive make build systems and M-x compile
Date: Thu, 18 Aug 2011 19:37:10 +0100	[thread overview]
Message-ID: <CAOnWdogEPHNmFfCWtZ2_xOc9mYwKqXUq0pQ4qtF9MDQ1b6N73w@mail.gmail.com> (raw)

With a non-recursive make-based build system, how do I make M-x
compile work nicely?

If I just run M-x compile when visiting a source file under src/ it
doesn't work, as src/ contains no Makefile.

If I change the build command to make -C .., then Emacs gives errors
in the compile buffer pointing to files like "src/foo.c", but can't
follow those links, I presume because it considers the current dir for
the build to be "src".

Looking through compile.el it seems I ought to be able to set
compile-directory conveniently somehow; I imagine that I wouldn't want
to change the default-directory for my source buffers, though.

(BTW, typo in compile.el: "fone after" → "done after".)

-- 
http://rrt.sc3d.org





             reply	other threads:[~2011-08-18 18:37 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-18 18:37 Reuben Thomas [this message]
2011-08-18 21:48 ` bug#9323: Non-recursive make build systems and M-x compile Andreas Schwab
2011-08-18 22:43   ` Reuben Thomas
2011-08-19  1:28 ` grischka
2011-08-19  3:23 ` Stefan Monnier
2011-08-19 12:17   ` Reuben Thomas
2011-08-19 13:41     ` Andreas Schwab
2011-08-19 17:22       ` Reuben Thomas
2011-08-19 19:46         ` Andreas Schwab
2011-08-19 19:55           ` Reuben Thomas
2011-08-19 23:30             ` Andreas Schwab
2011-08-20  5:20               ` Reuben Thomas
2011-08-20 12:57                 ` Andreas Schwab

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAOnWdogEPHNmFfCWtZ2_xOc9mYwKqXUq0pQ4qtF9MDQ1b6N73w@mail.gmail.com \
    --to=rrt@sc3d.org \
    --cc=9323@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.