X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=Makefile;h=99fbb555d5329c6afcae9c265291ca50de81adf5;hb=refs%2Fheads%2Fsandbox%2FSebD;hp=07357f3e6102bbbb0dc97356c750a75fea2afe97;hpb=dbfc002f609befedc705906750c85faf4a3ac7dc;p=src%2Fxds%2Fxds-server.git diff --git a/Makefile b/Makefile index 07357f3..99fbb55 100644 --- a/Makefile +++ b/Makefile @@ -149,7 +149,7 @@ webapp: webapp/install webapp/install: (cd webapp && npm install) - @if [ -d ${DESTDIR}/usr ]; then rmdir ${DESTDIR}/usr; fi + @[ -d ${DESTDIR}/usr ] && { echo "Removing unwanted ${DESTDIR}/usr directory"; rm -rf ${DESTDIR}/usr; } .PHONY: scripts scripts: @@ -163,9 +163,9 @@ conffile: .PHONY: install install: - @test -e $(LOCAL_BINDIR)/xds-server$(EXT) -a -d webapp/dist || { echo "Please execute first: make all\n"; exit 1; } - @test -d $(LOCAL_BINDIR)/xds-utils || { echo "Please execute first: make all\n"; exit 1; } - @test -e $(LOCAL_BINDIR)/syncthing$(EXT) -a -e $(LOCAL_BINDIR)/syncthing-inotify$(EXT) || { echo "Please execute first: make all\n"; exit 1; } + @test -e $(LOCAL_BINDIR)/xds-server$(EXT) -a -d webapp/dist || { echo "Please execute first: make all"; exit 1; } + @test -d $(LOCAL_BINDIR)/xds-utils || { echo "Please execute first: make all"; exit 1; } + @test -e $(LOCAL_BINDIR)/syncthing$(EXT) -a -e $(LOCAL_BINDIR)/syncthing-inotify$(EXT) || { echo "Please execute first: make all"; exit 1; } mkdir -p $(DESTDIR) \ && cp -a $(LOCAL_BINDIR)/* $(DESTDIR) mkdir -p $(DESTDIR_WWW) \