Re: [racket-users] What is the best way to "raco make" all *.rkt files in a directory tree?

2019-03-11 Thread Greg Hendershott
I think the best practice (at least my usual practice these days) is
to make a package.

Say the top of your tree is /path/to/project.

Once:

  raco pkg install /path/to/project

Thereafter your "make" is:

  raco setup --pkgs project


This also works fine for c:\path\to\project.

(Making it a local package like this doesn't mean you must publish it
to pkgs.r-l.org.)

On Mon, Mar 11, 2019 at 3:00 PM Brian Adkins  wrote:
>
> I looked over the documentation for raco make, and I didn't see anything 
> about how to recursively make all *.rkt files in a directory tree. I suppose 
> I could use something like:  find . -name \*.rkt | xargs raco make, but I 
> like being able to use all 8 "cores" with -j 8, and I *think* I'd lose that 
> with xargs.
>
> What is the best practice for making a tree of Racket code?
>
> Thanks,
> Brian
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Racket Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to racket-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [racket-users] What is the best way to "raco make" all *.rkt files in a directory tree?

2019-03-11 Thread George Neuner



On 3/11/2019 3:00 PM, Brian Adkins wrote:
I looked over the documentation for raco make, and I didn't see 
anything about how to recursively make all *.rkt files in a directory 
tree. I suppose I could use something like:  find . -name \*.rkt | 
xargs raco make, but I like being able to use all 8 "cores" with -j 8, 
and I *think* I'd lose that with xargs.


What is the best practice for making a tree of Racket code?


I'm not a 'find' wizard, so I'm not sure the options / command to use 
... but rather than dealing with individual files, I think what you want 
to do is find the *directories* that contain the racket files and invoke 
'raco make -j 8 *.rkt' in those directories.


YMMV,
George

--
You received this message because you are subscribed to the Google Groups "Racket 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[racket-users] What is the best way to "raco make" all *.rkt files in a directory tree?

2019-03-11 Thread Brian Adkins
I looked over the documentation for raco make, and I didn't see anything 
about how to recursively make all *.rkt files in a directory tree. I 
suppose I could use something like:  find . -name \*.rkt | xargs raco make, 
but I like being able to use all 8 "cores" with -j 8, and I *think* I'd 
lose that with xargs.

What is the best practice for making a tree of Racket code?

Thanks,
Brian

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.