Skip to content

Fix Ghostty make targets for paths with spaces#210

Merged
sbertix merged 1 commit intomainfrom
sbertix/space-safe-make
Apr 2, 2026
Merged

Fix Ghostty make targets for paths with spaces#210
sbertix merged 1 commit intomainfrom
sbertix/space-safe-make

Conversation

@sbertix
Copy link
Copy Markdown
Collaborator

@sbertix sbertix commented Apr 2, 2026

Summary

  • keep Ghostty build artifacts as real Make targets so deleting one output triggers a rebuild
  • switch the Ghostty build recipe to repo-relative paths so make works from repo roots whose path contains spaces
  • avoid the stamp-file approach and keep the Makefile closer to existing repo conventions

Test plan

  • Run make build-app from a path with spaces
  • Delete Frameworks/GhosttyKit.xcframework, Resources/ghostty, and Resources/terminfo, then run make build-app
  • Run make build-ghostty-xcframework again and confirm it is a no-op when outputs are present

@sbertix sbertix marked this pull request as draft April 2, 2026 15:10
Keep Ghostty build outputs as real Make targets so incremental rebuilds still work when an output is deleted.

Use repo-relative target and recipe paths instead of a stamp file, and remove the unused .ghostty-built ignore entry.
@sbertix sbertix force-pushed the sbertix/space-safe-make branch from bdab4c3 to e189b1e Compare April 2, 2026 15:17
@sbertix sbertix changed the title Fix Makefile for paths with spaces Fix Ghostty make targets for paths with spaces Apr 2, 2026
@sbertix sbertix marked this pull request as ready for review April 2, 2026 15:17
@sbertix sbertix merged commit 1f02e14 into main Apr 2, 2026
1 check passed
@sbertix sbertix deleted the sbertix/space-safe-make branch April 2, 2026 15:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant