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@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org

Reply via email to