On 02/27/2017 01:16 PM, Martin Gansser wrote:
On 02/27/2017 11:49 AM, Martin Gansser wrote:
A set DESTDIR variable should be a good approximation to that.
Florian
You mean something like here: ?
https://github.com/libreswan/libreswan/blob/master/initsystems/systemd/Makefile
installsystemdservice:
@mkdir -p $(SYSTEMDDIR)
$(INSTALL) $(INSTCONFFLAGS) $(SYSTEMDFILE) $(SYSTEMDDIR)
@if test $(SYSTEMDDIR) = ${UNITDIR} ; then \
systemctl --system daemon-reload ; \
fi
I suppose $(SYSTEMDDIR) (make variable) has DESTDIR applied, but
${UNITDIR} (shell variable) does not? Yes, then this is what I had in mind.
Thanks,
Florian
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx