Bug 193070 - Add option to specify the make program
Summary: Add option to specify the make program
Status: RESOLVED FIXED
Alias: None
Product: kdesrc-build
Classification: Developer tools
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Unspecified
: NOR wishlist
Target Milestone: ---
Assignee: Michael Pyne
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-18 03:46 UTC by Raphael Kubo da Costa
Modified: 2010-05-06 02:52 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
Add the desired behaviour (1.79 KB, patch)
2009-05-18 05:01 UTC, Raphael Kubo da Costa
Details
Updated version of the patch implementing the expected behaviour (809 bytes, patch)
2009-05-19 04:23 UTC, Raphael Kubo da Costa
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Raphael Kubo da Costa 2009-05-18 03:46:25 UTC
Version:            (using Devel)
Installed from:    Compiled sources

When compiling trunk in non-Linux systems (in my case, FreeBSD), calling make doesn't work with every modules - sometimes gmake is needed.

Currently, I could not find a way to specify what program should be used as 'make'.
Comment 1 Michael Pyne 2009-05-18 04:12:19 UTC
For now a workaround is to add a symlink called "make" pointing to gmake and making sure that it is present in the first directory of your binpath setting (you can create this directory yourself and add it to binpath if necessary).
Comment 2 Raphael Kubo da Costa 2009-05-18 05:01:10 UTC
Created attachment 33785 [details]
Add the desired behaviour

This patch adds the 'make-program' option (with the default value of 'make') and documents it.
Comment 3 Raphael Kubo da Costa 2009-05-19 04:23:18 UTC
Created attachment 33822 [details]
Updated version of the patch implementing the expected behaviour

As discussed on IRC, the option is not available on the command-line anymore, nor is it present in the sample rc file. The default is 'gmake' for all platforms.
Comment 4 Raphael Kubo da Costa 2009-05-19 18:11:14 UTC
I've tested the patch on a Linux system, and at least Arch Linux doesn't have gmake. I guess the sensible default should be make.
Comment 5 Michael Pyne 2009-05-22 04:08:02 UTC
OK, I think I'll just use some existing functionality that kdesvn-build has to use gmake if it's present in $PATH, otherwise default to make.

But that will have to wait until this weekend I guess since I have duty 22-May.
Comment 6 Michael Pyne 2010-05-06 02:52:49 UTC
SVN commit 1123402 by mpyne:

Almost one year later than I said I would, prefer gmake to make if it is present since
GNU Make works better typically, especially on non-Linux.

BUG:193070


 M  +15 -7     kdesvn-build  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1123402