Only update our files if PREFIX is non null and not /
authorRoy Marples <roy@marples.name>
Sun, 11 Nov 2007 00:13:11 +0000 (00:13 +0000)
committerRoy Marples <roy@marples.name>
Sun, 11 Nov 2007 00:13:11 +0000 (00:13 +0000)
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; \