News for hackers. Stuff that matters.
Re:Ask HN: In what creative ways are you using Makefiles? by thealistra on Tuesday July 25, 2017 @10:20AM (#14847887)
I wanted to download a few hundreds of files, but the server was enabling only 4 simultaneous connections.

I did a makefile like

    file1: 
        wget http://example.com/file1

    file2: 
        wget http://example.com/file2

    file3: 
        wget http://example.com/file3

And used make -j4 to download all of them, but only 4 parallel tasks at once. It starts another download when one finishes
Re:Ask HN: In what creative ways are you using Makefiles? by toomuchtodo on Tuesday July 25, 2017 @10:49PM (#14853380)
Check out aria2 next time.

https://aria2.github.io/

Re:Ask HN: In what creative ways are you using Makefiles? by stephenr on Wednesday July 26, 2017 @08:09AM (#14855460)
Xargs parallel processing or Gnu parallel would probably help a lot here.