breez-sdk icon indicating copy to clipboard operation
breez-sdk copied to clipboard

Makefile should build for the _current_ target by default

Open JssDWt opened this issue 1 year ago • 2 comments

When using the makefile, most commands should use the current target by default. If a developer wants to compile the python bindings, he should call make python for example, and it should work for the target he is on currently.

In order to get the current target, we could use TARGET=$(rustc -vV | sed -n 's|host: ||p'). (not sure whether that works on all platforms). There should be logic for copying the correct binaries to the correct locations. It could be .dylib, .so, .dll for example.

So

  • use current target by default
  • Make sure the commands work on all platforms (with the current target)
  • Have specialist commands to build for specific platforms and combinations of platforms

JssDWt avatar Aug 24 '23 08:08 JssDWt