macOS symbol/conditional for Makefiles (porting)

Christoph Kukulies kuku at kukulies.org
Mon Dec 28 20:36:23 UTC 2020


Thanks. shell UNAME is a nice trick.

$ uname 
Darwin
Christoph Kukulies




> Am 28.12.2020 um 21:28 schrieb Ken Cunningham <ken.cunningham.webuse at gmail.com>:
> 
> > Does macOS supply any built-in variable for building that if block?
> 
> 
> See <https://stackoverflow.com/questions/714100/os-detecting-makefile <https://stackoverflow.com/questions/714100/os-detecting-makefile>> and similar examples for ways of detecting and branching on the OS in Makefiles.
> 
> Ken
> 
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-users/attachments/20201228/755a7681/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3363 bytes
Desc: not available
URL: <http://lists.macports.org/pipermail/macports-users/attachments/20201228/755a7681/attachment.bin>


More information about the macports-users mailing list