From: Roy Marples Date: Sun, 11 Nov 2007 00:13:11 +0000 (+0000) Subject: Only update our files if PREFIX is non null and not / X-Git-Tag: openresolv-1.9~69 X-Git-Url: https://roy.marples.name/git?hp=58e59892a3ccec5f1c224fc97a8b336f8574905d Only update our files if PREFIX is non null and not / --- diff --git a/Makefile b/Makefile index a5b26cb..d1a7c58 100644 --- 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; \