horchi / linux-p4d

Deamon which fetch sensor data of the 'Lambdatronic s3200' and store to a MySQL database
GNU General Public License v2.0
49 stars 22 forks source link

Makefile: Ability to just build the `p4` binary. #16

Closed dominic-miglar closed 2 years ago

dominic-miglar commented 3 years ago

Hey there 👋

First of all, I want to thank you for this great project @horchi !

I am just using the p4 binary of that project in my froeling-reader-service and have to build a lot of dependencies (e.g. libwebsockets, and so on and so forth..). It would be very useful if there has been a Makefile-target which just builds that particular binary.

Also, there are systems out which are not using systemd. Needed to build a workaround here in order to build it in a container where the systemctl command is not present. A possible solution would be to do that in another (optional) Makefile target or move it even out of the Makefile.

horchi commented 3 years ago

have you tried calling make p4, this shouldn't need the libwebsockets an the systemd. Actually I have only systems which full fill a dependencies whereby I can't test it. Please let me now if there are other needless dependencies.

horchi commented 2 years ago

seems to have settled, I close the issue times