netsurf-reMarkable icon indicating copy to clipboard operation
netsurf-reMarkable copied to clipboard

make install issues

Open markododa opened this issue 1 year ago • 0 comments

When running make install .netsurf does not get created and scp fails on the symlinks.

With the following changes make install works

diff --git a/Makefile b/Makefile
index 33a8138..5c0c60a 100755
--- a/Makefile
+++ b/Makefile
@@ -68,7 +68,8 @@ image: ## Build the Docker image that is used for building netsurf
        docker build -t netsurf-build:$(IMAGE_TAG) .
 
 copy-resources: ## Copy resources to device
-       scp -r $(BUILD_DIR)/netsurf/frontends/framebuffer/res root@$(INSTALL_DESTINATION):/home/root/.netsurf/
+       ssh root@${INSTALL_DESTINATION} sh -c "test -d /home/root/.netsurf || mkdir /home/root/.netsurf"
+       rsync -rlP $(BUILD_DIR)/netsurf/frontends/framebuffer/res root@$(INSTALL_DESTINATION):/home/root/.netsurf/
        scp example/Choices root@$(INSTALL_DESTINATION):/home/root/.netsurf/
 
 copy-binary: ## Copy binary to device

markododa avatar Apr 08 '23 11:04 markododa