www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - dmake - clean?

reply clayasaurus <clayasaurus gmail.com> writes:
Hello. I've been using dmake for a bit and I like it.
I was wondering, could there be some option for dmake
that deletes all object files created from the main program?
maybe like 'dmake main.d -clean'
:-)
thx
Oct 09 2004
next sibling parent reply Tyro <ridimz_at yahoo.dot.com> writes:
clayasaurus wrote:
 Hello. I've been using dmake for a bit and I like it.
 I was wondering, could there be some option for dmake
 that deletes all object files created from the main program?
 maybe like 'dmake main.d -clean'
 :-)
 thx
do you mean: dmake main -build ?
Oct 10 2004
parent clayasaurus <clayasaurus gmail.com> writes:
Tyro wrote:
 clayasaurus wrote:
 
 Hello. I've been using dmake for a bit and I like it.
 I was wondering, could there be some option for dmake
 that deletes all object files created from the main program?
 maybe like 'dmake main.d -clean'
 :-)
 thx
do you mean: dmake main -build ?
Hum no. -build just rebuilds the whole project. It still leaves around a lot of little object files all over the place.
Oct 10 2004
prev sibling next sibling parent reply Helmut Leitner <helmut.leitner wikiservice.at> writes:
clayasaurus wrote:
 
 Hello. I've been using dmake for a bit and I like it.
 I was wondering, could there be some option for dmake
 that deletes all object files created from the main program?
 maybe like 'dmake main.d -clean'
 :-)
 thx
That would be simple to do. Is this important for you? Questions: A: What to delete: (1) delete those object files that have been created during the make? (2) delete all object files that have an corresponding sourcefile? B: Should (3) -clean be a separate step [this could only go with (2)] (4) -clean be combinable with make (default) and -build (1)+(4) would leave you with just a single new executable (2)+(3||4) would delete all object files that can be recompiled == For information: Derek Parnell programmed a much extended version of dmake (800 => 1400 LOC) that contains a lot of new options. The only problem is that I've currently not the time to test it. I suggested to publish it as a fork, but he prefers to wait. -- Helmut Leitner leitner hls.via.at Graz, Austria www.hls-software.com
Oct 10 2004
next sibling parent reply Tyro <ridimz_at yahoo.dot.com> writes:
Helmut Leitner wrote:
 
 clayasaurus wrote:
 
Hello. I've been using dmake for a bit and I like it.
I was wondering, could there be some option for dmake
that deletes all object files created from the main program?
maybe like 'dmake main.d -clean'
:-)
thx
That would be simple to do.
I've taken the liberty of modifying your program to do this already. I'm curious to see if you would suggest a better way about doing it. Can I post it here or is there somewhere else you would like me to send it? Andrew
Oct 10 2004
parent Helmut Leitner <helmut.leitner wikiservice.at> writes:
Tyro wrote:
 
 Helmut Leitner wrote:
 clayasaurus wrote:

Hello. I've been using dmake for a bit and I like it.
I was wondering, could there be some option for dmake
that deletes all object files created from the main program?
maybe like 'dmake main.d -clean'
:-)
thx
That would be simple to do.
I've taken the liberty of modifying your program to do this already. I'm curious to see if you would suggest a better way about doing it. Can I post it here or is there somewhere else you would like me to send it?
I think the source is too long to post it here. Send it to me and all who request it. -- Helmut Leitner leitner hls.via.at Graz, Austria www.hls-software.com
Oct 10 2004
prev sibling next sibling parent Tyro <ridimz_at yahoo.dot.com> writes:
[snip]

Yes..
I used the following options in my update.

 A: What to delete:
   (2) delete all object files that have an corresponding sourcefile?
[snip]
 B: Should 
   (3) -clean be a separate step [this could only go with (2)]
[snip] Andrew
Oct 10 2004
prev sibling parent reply clayasaurus <clayasaurus gmail.com> writes:
A: delete object files created from make
B: seperate step.

I'd use it as a quick way to clean out the directories of object files 
so i can zip it or add it to svn. :-)

Helmut Leitner wrote:
 
 clayasaurus wrote:
 
Hello. I've been using dmake for a bit and I like it.
I was wondering, could there be some option for dmake
that deletes all object files created from the main program?
maybe like 'dmake main.d -clean'
:-)
thx
That would be simple to do. Is this important for you? Questions: A: What to delete: (1) delete those object files that have been created during the make? (2) delete all object files that have an corresponding sourcefile? B: Should (3) -clean be a separate step [this could only go with (2)] (4) -clean be combinable with make (default) and -build (1)+(4) would leave you with just a single new executable (2)+(3||4) would delete all object files that can be recompiled == For information: Derek Parnell programmed a much extended version of dmake (800 => 1400 LOC) that contains a lot of new options. The only problem is that I've currently not the time to test it. I suggested to publish it as a fork, but he prefers to wait.
Oct 10 2004
parent Helmut Leitner <helmut.leitner wikiservice.at> writes:
clayasaurus wrote:
 
 A: delete object files created from make
 B: seperate step.
 
 I'd use it as a quick way to clean out the directories of object files
 so i can zip it or add it to svn. :-)
commandline zip should have options to select or suppress extensions. svn should be configurable that object files (certain extensions or wildcard patterns) aren't transferred. -- Helmut Leitner leitner hls.via.at Graz, Austria www.hls-software.com
Oct 10 2004
prev sibling parent reply marko <tm030127d galeb.etf.bg.ac.yu> writes:
On Sat, 09 Oct 2004 23:15:26 -0400, clayasaurus <clayasaurus gmail.com>  
wrote:

 Hello. I've been using dmake for a bit and I like it.
 I was wondering, could there be some option for dmake
 that deletes all object files created from the main program?
 maybe like 'dmake main.d -clean'
 :-)
 thx
where can i download dmake?
Oct 13 2004
parent J C Calvarese <jcc7 cox.net> writes:
marko wrote:
 On Sat, 09 Oct 2004 23:15:26 -0400, clayasaurus <clayasaurus gmail.com>  
 wrote:
 
 Hello. I've been using dmake for a bit and I like it.
 I was wondering, could there be some option for dmake
 that deletes all object files created from the main program?
 maybe like 'dmake main.d -clean'
 :-)
 thx
where can i download dmake?
http://www.wikiservice.at/upload/HelmutLeitner/dmake.d Here's the dmake home page for more info: http://www.prowiki.org/wiki4d/wiki.cgi?Dmake -- Justin (a/k/a jcc7) http://jcc_7.tripod.com/d/
Oct 13 2004