You are not logged in.

#1 2007-07-15 15:43:31

Misfit138
Misfit Emeritus
From: USA
Registered: 2006-11-27
Posts: 4,189

Silly makepkg.conf question

Does makepkg.conf dictate "make" behavior as well as "makepkg" behavior ?
For instance if I use MAKEFLAGS="-j3" will I be able to benefit from it using regular "make" ?

Offline

#2 2007-07-15 17:31:56

Cerebral
Forum Fellow
From: Waterloo, ON, CA
Registered: 2005-04-08
Posts: 3,108
Website

Re: Silly makepkg.conf question

Nope - makepkg.conf only dictates what happens when you run makepkg.

Offline

#3 2007-07-15 21:39:57

Misfit138
Misfit Emeritus
From: USA
Registered: 2006-11-27
Posts: 4,189

Re: Silly makepkg.conf question

Cerebral wrote:

Nope - makepkg.conf only dictates what happens when you run makepkg.

So then, how can I dictate regular "make" behavior, if there is no /etc/make.conf ?
Or can't I ?

Offline

#4 2007-07-15 23:01:35

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: Silly makepkg.conf question

Use an alias. i.e. add
alias make='make -j3'
in your ~/.bashrc

Offline

#5 2007-07-16 12:26:21

Misfit138
Misfit Emeritus
From: USA
Registered: 2006-11-27
Posts: 4,189

Re: Silly makepkg.conf question

Snowman wrote:

Use an alias. i.e. add
alias make='make -j3'
in your ~/.bashrc

Ok, so I will try


alias make='make -j3 CFLAGS="-march=k8 -O2 -pipe -fomit-frame-pointer" CXXFLAGS="${CFLAGS}"'

That looks wrong, I know.
I'll play around with it. Any help is appreciated.

Last edited by Misfit138 (2007-07-16 12:54:50)

Offline

#6 2007-07-31 17:31:35

Cerebral
Forum Fellow
From: Waterloo, ON, CA
Registered: 2005-04-08
Posts: 3,108
Website

Re: Silly makepkg.conf question

Well, if you want default CFLAGS and CXXFLAGS you can just set them before the alias:

export CFLAGS="-march=k8 -O2 -pipe -fomit-frame-pointer"
export CXXFLAGS=${CFLAGS}
alias make='make -j3'

That would work as well.

Offline

#7 2007-07-31 18:08:46

Misfit138
Misfit Emeritus
From: USA
Registered: 2006-11-27
Posts: 4,189

Re: Silly makepkg.conf question

Cerebral wrote:

Well, if you want default CFLAGS and CXXFLAGS you can just set them before the alias:

export CFLAGS="-march=k8 -O2 -pipe -fomit-frame-pointer"
export CXXFLAGS=${CFLAGS}
alias make='make -j3'

That would work as well.

Ah, brilliant, thank you. There's what I was looking for. I am assuming that this should work whether I put it in /etc/profile or ~/.bashrc. (I only have 1 user and root.)

Offline

#8 2007-07-31 18:29:13

Cerebral
Forum Fellow
From: Waterloo, ON, CA
Registered: 2005-04-08
Posts: 3,108
Website

Re: Silly makepkg.conf question

Misfit138 wrote:

Ah, brilliant, thank you. There's what I was looking for. I am assuming that this should work whether I put it in /etc/profile or ~/.bashrc. (I only have 1 user and root.)

Yeah, it oughta work in either place. wink

Offline

Board footer

Powered by FluxBB