News for hackers. Stuff that matters.
Re:“Swift will be open source later this year” by gsnedders on Monday June 08, 2015 @07:04PM (#9683069)
CoreFoundation has a MakefileLinux[1] for versions since 635 (corresponding to 10.7, if I'm not mistaken) — anybody know the status of that? It obviously relies on Clang (as it uses various extensions), but does it build, is it useful?

[1]: http://www.opensource.apple.com/source/CF/CF-1151.16/Makefil...

Re:“Swift will be open source later this year” by lukeh on Monday June 08, 2015 @07:34PM (#9683177)
It's not all of CF and some of the ObjC glue is missing, particularly in the last few drops. Apportable put most of if back in though.
Re:“Swift will be open source later this year” by biturd on Monday June 08, 2015 @10:20PM (#9683729)
What language is that link written in? It looks like bash sort of but not really?
Re:“Swift will be open source later this year” by johnmaguire2013 on Tuesday June 09, 2015 @12:45AM (#9684134)
It's a Makefile[1]. They are quite simple really. They're defined like this:

  target: dependencies
      command
The command is run by a shell (e.g. bash!) when the target is called to be run. For example...

  all: hello world
      echo "!"

  hello:
      echo "Hello"

  world:
      echo "World"
Now if you run "make", you will see each command being run. By default, if you call "make" with no arguments, the "all" target will be run. You can also call "make world" for example, to have it only run the "world" target. As you can see, first the dependencies of the target are called, then the command of the target is run.

It's often used by C/C++ projects in order to manage dependencies, but can be used for anything really.

Here's a short tutorial you can walk through if you're interested in how it works and why it's useful: http://mrbook.org/blog/tutorials/make/

1. https://en.wikipedia.org/wiki/Makefile

Re:“Swift will be open source later this year” by sova on Tuesday June 09, 2015 @03:56AM (#9684554)
wow thanks for breaking that down. years of playing and prodding on linux and this helped me a lot. funny and funky what slips through the cracks. kudos friend
Re:“Swift will be open source later this year” by stephenr on Monday June 08, 2015 @10:31PM (#9683760)
It's a Makefile.. for.. Make.
Re:“Swift will be open source later this year” by notduncansmith on Monday June 08, 2015 @11:26PM (#9683921)
I feel like this reply could have been much more helpful and less snarky. Some people are still learning - we all were, at one point.
Re:“Swift will be open source later this year” by keeganpoppen on Tuesday June 09, 2015 @12:58AM (#9684158)
everyone is always learning (hopefully) ;D
Re:“Swift will be open source later this year” by 72deluxe on Tuesday June 09, 2015 @05:12AM (#9684743)
Some people aren't learning to be helpful or less snarky though.... :-)