Ignored webapp/install error when DESTDIR doesn't exist
[src/xds/xds-server.git] / Makefile
index 99fbb55..705b670 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -149,7 +149,7 @@ webapp: webapp/install
 
 webapp/install:
        (cd webapp && npm install)
-       @[ -d ${DESTDIR}/usr ] && { echo "Removing unwanted ${DESTDIR}/usr directory"; rm -rf ${DESTDIR}/usr; }
+       @[ -d ${DESTDIR}/usr ] && { echo "Removing unwanted ${DESTDIR}/usr directory"; rm -rf ${DESTDIR}/usr; } || true
 
 .PHONY: scripts
 scripts: