bustd icon indicating copy to clipboard operation
bustd copied to clipboard

Makefile support

Open TechnologyClassroom opened this issue 4 months ago • 6 comments

I have seen some Rust programs include a Makefile to make compilation and installation simple.

The goal would be to build with this command:

make

Another goal would be to install with this command:

sudo make install

Installation would ideally place target/release/bustd in /usr/local/bin/ and a bustd.service systemd unit file in /lib/systemd/system/ directory, enable and start the service.

I have a script that I run before work that turns on all of the programs that I need including bustd. A simple installation process and a systemd unit file addition would help most normal users.

TechnologyClassroom avatar Sep 16 '25 20:09 TechnologyClassroom

Sorry it might be harsh my comment, however maintaining a Makefile's can be really cumbersome as it evolves. An alternative could be https://github.com/sagiegurari/cargo-make wdyt @TechnologyClassroom

Xunjin avatar Nov 10 '25 16:11 Xunjin

I think cargo-make is more complex than a makefile.

TechnologyClassroom avatar Nov 10 '25 16:11 TechnologyClassroom

Good point, what do you think would be a better alternative?

Xunjin avatar Nov 10 '25 16:11 Xunjin

A makefile... like I suggested...

TechnologyClassroom avatar Nov 10 '25 16:11 TechnologyClassroom

Thanks for the ticket @TechnologyClassroom

Back when popOS packaged bustd, they created this Makefile: https://github.com/pop-os/bustd/blob/master/Makefile

Could be a good basis

vrmiguel avatar Nov 11 '25 15:11 vrmiguel

Looks perfect and ready to ship.

TechnologyClassroom avatar Nov 11 '25 19:11 TechnologyClassroom