Extra nested folders when using Makefile for example C API projects

,

I’m using the Playdate 2.4.1 SDK on macOS 14.3.1 with Xcode 15.3. When I try to compile a project using the C API, I see a duplicate buildsupport folder getting created:

~/Developer/PlaydateSDK/C_API/Examples/Hello World$ make
…
mkdir -p `dirname build//Users/jeff/Developer/PlaydateSDK/C_API/buildsupport/setup.o`
~/Developer/PlaydateSDK/C_API/Examples/Hello World$ tree                       
.
├── CMakeLists.txt
├── HelloWorld.pdx
│   ├── pdex.bin
│   ├── pdex.dylib
│   └── pdxinfo
├── License.md
├── Makefile
├── Source
│   ├── pdex.dylib
│   ├── pdex.elf
│   └── pdxinfo
├── build
│   ├── Users
│   │   └── jeff
│   │       └── Developer
│   │           └── PlaydateSDK
│   │               └── C_API
│   │                   └── buildsupport
│   │                       └── setup.o

Thanks for the report. This is expected but perhaps not intended. We'll try and get it building a more sane directory structure. :slight_smile: