Don't rely on /etc/init.d being OpenRC
[openresolv] / Makefile
index a5b26cb6a2a1b42ee358e9b606f6e9a234d176cc..d1a7c58f507e6c11887c892e107a1d2afedb341f 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -22,7 +22,7 @@ install:
        $(INSTALL) resolvconf $(BINDIR)
        $(INSTALL) libc dnsmasq named $(UPDATEDIR)
        $(INSTALL) -m 644 resolvconf.8 $(MANDIR)
-       if test "$(PREFIX)" "!=" "/"; then \
+       if test "$(PREFIX)" "!=" "/" && test -n "$(PREFIX)"; then \
                for x in $(BINDIR)/resolvconf $(UPDATEDIR)/libc $(UPDATEDIR)/dnsmasq $(UPDATEDIR)/named; do \
                sed -i.bak -e s':^PREFIX=.*:PREFIX="$(PREFIX)":' "$$x"; rm "$$x".bak; \
                done; \