aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastien Douheret <sebastien.douheret@iot.bzh>2017-06-20 20:48:33 +0200
committerSebastien Douheret <sebastien.douheret@iot.bzh>2017-06-20 20:48:33 +0200
commitd21eb59c4f7fe9844646bd60ac34aa1d3cbb792f (patch)
treeb4879f0b575e8daf1d86b555de09d1d9f0e765b4
parent0699037e09e716a17a77dbfc38c3ca553a583775 (diff)
Fiw webapp/install rule.
test xxx && yyy doesn't work because "&&" characters seems interpreted by make. Workaround is to write test statement with if syntax.
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index c13e1e5..29a33a8 100644
--- a/Makefile
+++ b/Makefile
@@ -119,7 +119,7 @@ webapp/debug:
webapp/install:
(cd webapp && npm install)
- @test -d ${DESTDIR}/usr/local/etc && rm -rf ${DESTDIR}/usr
+ @if [ -d ${DESTDIR}/usr/local/etc ]; then rm -rf ${DESTDIR}/usr; fi
.PHONY: scripts
scripts: