On 4/22/2015 7:17 PM, Tim Hogard wrote: > > The makefile is trying to install the systemd wrapper on all platforms even > if it isn't built. > This is from the current build haproxy-ss-20150422 as well as haproxy-1.5.11. <snip> > The easy soltuion for non-linux systems is drop it to this: > install-bin: haproxy > install -d "$(DESTDIR)$(SBINDIR)" > install haproxy "$(DESTDIR)$(SBINDIR)"
Apologies for resurrecting such an old thread, but it's relevant to my interests today. I'm building some new load balancer machines and I need to install into systemd on them. I've compiled and installed haproxy 1.5.18, and found that a fix for the problem Tim outlined has made it into this version, and now even when the target is linux2628, which *builds* the systemd wrapper, the wrapper is not *installed*. I needed to fiddle with the commandline to get it installed: make EXTRA=haproxy-systemd-wrapper install Should this be considered a bug? I would be willing to provide a patch, but I'm not familiar enough with Makefile syntax to solve it. It looks like the compile portion of the Makefile does correctly deduce that linux26 and linux2628 targets should *build* the wrapper. Therefore, if make can decide what to do based on the presence or absence of a file, it should be possible to only install the wrapper if the compiled executable is present. Thanks, Shawn

