* Compiling C++ in Emacs (read Compiling and Testing...)
@ 2006-08-02 23:06 Paulo J. Matos
2006-08-03 9:22 ` Peter Dyballa
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: Paulo J. Matos @ 2006-08-02 23:06 UTC (permalink / raw)
Hi all,
I'm probably missing something. I have a dir: software/prog/ where I
have a Makefile and some sources managed by autotools (which generate
the Makefile).
Then I have software/prog-build, where I run: ../prog/configure ... etc.
This way I'm editing in software/prog and running make in software/prog-build.
My guess is if I do M-x compile, make will run in software/prog where
there is not any makefile, because after all, there's where the file
is being edited.
How can I pass the directory where the make command should be run?
Cheers,
--
Paulo Jorge Matos - pocm at sat inesc-id pt
Web: http://sat.inesc-id.pt/~pocm
Computer and Software Engineering
INESC-ID - SAT Group
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Compiling C++ in Emacs (read Compiling and Testing...)
2006-08-02 23:06 Compiling C++ in Emacs (read Compiling and Testing...) Paulo J. Matos
@ 2006-08-03 9:22 ` Peter Dyballa
2006-08-03 13:35 ` Kevin Rodgers
[not found] ` <mailman.4804.1154612421.9609.help-gnu-emacs@gnu.org>
2 siblings, 0 replies; 6+ messages in thread
From: Peter Dyballa @ 2006-08-03 9:22 UTC (permalink / raw)
Cc: help-gnu-emacs
Am 03.08.2006 um 01:06 schrieb Paulo J. Matos:
> How can I pass the directory where the make command should be run?
Why that? Can't you dired software/prog and then
M-x compile RET ./configure <options> RET
M-x compile RET make -k <what so ever> RET
? How do you read the INSTALL and README files or make configure show
its options?
--
Greetings
~ O
Pete ~~_\\_/%
~ O o
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Compiling C++ in Emacs (read Compiling and Testing...)
2006-08-02 23:06 Compiling C++ in Emacs (read Compiling and Testing...) Paulo J. Matos
2006-08-03 9:22 ` Peter Dyballa
@ 2006-08-03 13:35 ` Kevin Rodgers
[not found] ` <mailman.4804.1154612421.9609.help-gnu-emacs@gnu.org>
2 siblings, 0 replies; 6+ messages in thread
From: Kevin Rodgers @ 2006-08-03 13:35 UTC (permalink / raw)
Paulo J. Matos wrote:
> I'm probably missing something. I have a dir: software/prog/ where I
> have a Makefile and some sources managed by autotools (which generate
> the Makefile).
> Then I have software/prog-build, where I run: ../prog/configure ... etc.
> This way I'm editing in software/prog and running make in
> software/prog-build.
>
> My guess is if I do M-x compile, make will run in software/prog where
> there is not any makefile, because after all, there's where the file
> is being edited.
Above, you said software/prog is where the Makefile resides.
> How can I pass the directory where the make command should be run?
M-x compile RET
C-a C-k
cd /directory/to/run/in && make target
--
Kevin
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Compiling C++ in Emacs (read Compiling and Testing...)
[not found] ` <mailman.4804.1154612421.9609.help-gnu-emacs@gnu.org>
@ 2006-08-05 15:30 ` Miles Bader
2006-08-05 17:07 ` Paulo J. Matos
[not found] ` <mailman.4899.1154797668.9609.help-gnu-emacs@gnu.org>
0 siblings, 2 replies; 6+ messages in thread
From: Miles Bader @ 2006-08-05 15:30 UTC (permalink / raw)
Kevin Rodgers <ihs_4664@yahoo.com> writes:
> cd /directory/to/run/in && make target
I usually use `make -C /some/dir'
-miles
--
Occam's razor split hairs so well, I bought the whole argument!
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Compiling C++ in Emacs (read Compiling and Testing...)
2006-08-05 15:30 ` Miles Bader
@ 2006-08-05 17:07 ` Paulo J. Matos
[not found] ` <mailman.4899.1154797668.9609.help-gnu-emacs@gnu.org>
1 sibling, 0 replies; 6+ messages in thread
From: Paulo J. Matos @ 2006-08-05 17:07 UTC (permalink / raw)
Cc: help-gnu-emacs
On 05/08/06, Miles Bader <miles@gnu.org> wrote:
> Kevin Rodgers <ihs_4664@yahoo.com> writes:
> > cd /directory/to/run/in && make target
>
> I usually use `make -C /some/dir'
>
Ah, that's nice. Didn't know about the -C flag.
After Peter and Kevin replies I just dired to the directory and called
compile from there. :-)
-C seems a nicer way since I don't need to use dired. :-)
Thanks,
Paulo Matos
> -miles
> --
> Occam's razor split hairs so well, I bought the whole argument!
>
>
> _______________________________________________
> help-gnu-emacs mailing list
> help-gnu-emacs@gnu.org
> http://lists.gnu.org/mailman/listinfo/help-gnu-emacs
>
--
Paulo Jorge Matos - pocm at sat inesc-id pt
Web: http://sat.inesc-id.pt/~pocm
Computer and Software Engineering
INESC-ID - SAT Group
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Compiling C++ in Emacs (read Compiling and Testing...)
[not found] ` <mailman.4899.1154797668.9609.help-gnu-emacs@gnu.org>
@ 2006-08-07 6:49 ` Hadron Quark
0 siblings, 0 replies; 6+ messages in thread
From: Hadron Quark @ 2006-08-07 6:49 UTC (permalink / raw)
"Paulo J. Matos" <pocmatos@gmail.com> writes:
> On 05/08/06, Miles Bader <miles@gnu.org> wrote:
>> Kevin Rodgers <ihs_4664@yahoo.com> writes:
>> > cd /directory/to/run/in && make target
>>
>> I usually use `make -C /some/dir'
>>
>
> Ah, that's nice. Didn't know about the -C flag.
> After Peter and Kevin replies I just dired to the directory and called
> compile from there. :-)
>
> -C seems a nicer way since I don't need to use dired. :-)
>
In addition, if you open a file, emacs assumes that directory when you compile.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2006-08-07 6:49 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-02 23:06 Compiling C++ in Emacs (read Compiling and Testing...) Paulo J. Matos
2006-08-03 9:22 ` Peter Dyballa
2006-08-03 13:35 ` Kevin Rodgers
[not found] ` <mailman.4804.1154612421.9609.help-gnu-emacs@gnu.org>
2006-08-05 15:30 ` Miles Bader
2006-08-05 17:07 ` Paulo J. Matos
[not found] ` <mailman.4899.1154797668.9609.help-gnu-emacs@gnu.org>
2006-08-07 6:49 ` Hadron Quark
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).