We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 5399

Summary: make install is broken as it depends on missing rule `build`
Product: SDL Reporter: Stephen Broadfoot <stephen.broadfoot>
Component: buildAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: major    
Priority: P2    
Version: HG 2.1   
Hardware: All   
OS: Other   

Description Stephen Broadfoot 2020-12-15 05:03:58 UTC
I've tracked this down to the following changeset 99d8b18acf8a

https://hg.libsdl.org/SDL/diff/99d8b18acf8a/Makefile.in

this changeset renames the rule `build` to `build/.created` but the rule `install-lib` still depends on the rule `build`


This affects users who are trying to install via homebrew who are installing via source and not by the bottle as this invokes `make install`

We should fix the makefile and then update the homebrew formula on github at

https://github.com/Homebrew/homebrew-core/blob/master/Formula/sdl2.rb
Comment 1 Stephen Broadfoot 2020-12-15 05:06:29 UTC
To be clear, the error I was hitting when running make install is

make: *** No rule to make target `build', needed by `install-lib'.  Stop.
Comment 2 Sam Lantinga 2020-12-15 08:42:38 UTC
Fixed, thanks!
https://hg.libsdl.org/SDL/rev/cf83f816421c
Comment 3 Stephen Broadfoot 2020-12-16 00:33:24 UTC
https://github.com/Homebrew/homebrew-core/pull/66971

adding the patch to homebrew formula so people can install from source