Fix copy of agl directory in make install
authorSebastien Douheret <sebastien.douheret@iot.bzh>
Thu, 18 May 2017 10:15:01 +0000 (12:15 +0200)
committerSebastien Douheret <sebastien.douheret@iot.bzh>
Thu, 18 May 2017 10:15:01 +0000 (12:15 +0200)
Makefile

index 8212824..4bb7207 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -95,7 +95,7 @@ install:
        @test -e $(LOCAL_BINDIR)/xds-start-server.sh -a -d $(LOCAL_BINDIR)/agl || { echo "Please execute first: scripts\n"; exit 1; }
        @test -e $(LOCAL_TOOLSDIR)/syncthing -a -e $(LOCAL_TOOLSDIR)/syncthing-inotify || { echo "Please execute first: make tools/syncthing\n"; exit 1; }
        mkdir -p $(INSTALL_DIR) \
-               && cp $(LOCAL_BINDIR)/* $(INSTALL_DIR) \
+               && cp -a $(LOCAL_BINDIR)/* $(INSTALL_DIR) \
                && cp $(LOCAL_TOOLSDIR)/syncthing* $(INSTALL_DIR)
        mkdir -p $(INSTALL_WEBAPP_DIR) \
                && cp -a webapp/dist/* $(INSTALL_WEBAPP_DIR)