www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Compiling DMD

reply "Nick Sabalausky" <a a.a> writes:
Is the makefile supposed to work "out-of-the-box", or is it expected that it 
be edited first?  Because when I do "make -f win32.mak" form the src dir I 
just get "Error: '\dm\bin\dmc' not found". Same (exact same) result if I do 
"make -f win32.mak D=path_to_parent_of_dm".

I know I can just hack the make file to make it work like I've alwayd done 
before, but now that I'm starting to work with the source from github, I 
want to see if theres a "proper" way to do it that I'm missing that won't 
end up with me needing to omit the makefile from commits and re-apply my 
change whenever I pull a new version of the makefile.
Apr 07 2011
next sibling parent soarowl zhuo <soarowl yeah.net> writes:
Hello=20Nick,

=20Is=20the=20makefile=20supposed=20to=20work=20"out-of-the-box",=20or=20is=20it=20expected
=20that=20it=20be=20edited=20first?=20=20Because=20when=20I=20do=20"make=20-f=20win32=2emak"=20form
=20the=20src=20dir=20I=20just=20get=20"Error:=20'\dm\bin\dmc'=20not=20found"=2e=20Same=20(exact
=20same)=20result=20if=20I=20do=20"make=20-f=20win32=2emak=20D=3dpath=5fto=5fparent=5fof=5fdm"=2e
=20
=20I=20know=20I=20can=20just=20hack=20the=20make=20file=20to=20make=20it=20work=20like=20I've=20alwayd
=20done=20before,=20but=20now=20that=20I'm=20starting=20to=20work=20with=20the=20source=20from
=20github,=20I=20want=20to=20see=20if=20theres=20a=20"proper"=20way=20to=20do=20it=20that=20I'm
=20missing=20that=20won't=20end=20up=20with=20me=20needing=20to=20omit=20the=20makefile=20from
=20commits=20and=20re-apply=20my=20change=20whenever=20I=20pull=20a=20new=20version=20of=20the
=20makefile=2e
=20
Yes,=20need=20some=20modifications=2e
Apr 07 2011
prev sibling next sibling parent Kagamin <spam here.lot> writes:
Nick Sabalausky Wrote:

 want to see if theres a "proper" way to do it that I'm missing that won't 
 end up with me needing to omit the makefile from commits and re-apply my 
 change whenever I pull a new version of the makefile.
it should be possible to merge stock makefile with local version, even ms does it.
Apr 08 2011
prev sibling parent Simon <s.d.hammett gmail.com> writes:
On 08/04/2011 05:37, Nick Sabalausky wrote:
 Is the makefile supposed to work "out-of-the-box", or is it expected that it
 be edited first?  Because when I do "make -f win32.mak" form the src dir I
 just get "Error: '\dm\bin\dmc' not found". Same (exact same) result if I do
 "make -f win32.mak D=path_to_parent_of_dm".

 I know I can just hack the make file to make it work like I've alwayd done
 before, but now that I'm starting to work with the source from github, I
 want to see if theres a "proper" way to do it that I'm missing that won't
 end up with me needing to omit the makefile from commits and re-apply my
 change whenever I pull a new version of the makefile.
You could create a junction from \dm\bin to where ever you've put the dmc bin folder. saves mucking around. -- My enormous talent is exceeded only by my outrageous laziness. http://www.ssTk.co.uk
Apr 08 2011