The `linux` part is correct.  Here, `linux` just builds the JAR files and the command line scripts, e.g. `beast`, that call these JAR files.  Calling `mac` will build the GUI application as well, which seemed inappropriate for Homebrew.