You are not logged in.
Pages: 1
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
Nope - makepkg.conf only dictates what happens when you run makepkg.
Offline
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
Use an alias. i.e. add
alias make='make -j3'
in your ~/.bashrc
Offline
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
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
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
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.
Offline
Pages: 1