From 6bbac8559f385043f59af25dd6517a5ae080498d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Konstantin=20Ka=CC=88fer?= Date: Sun, 1 Jun 2014 22:28:12 +0200 Subject: [PATCH] run executable with correct working dir --- Makefile | 2 +- linux/main.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 26d3d67fd..b6e034da8 100644 --- a/Makefile +++ b/Makefile @@ -53,7 +53,7 @@ linux: config.gypi linux/llmr-app.gyp node # Executes the Linux binary run-linux: linux - build/$(BUILDTYPE)/mapbox-gl + (cd build/$(BUILDTYPE) && ./mapbox-gl) diff --git a/linux/main.cpp b/linux/main.cpp index f796a2351..bee52d901 100644 --- a/linux/main.cpp +++ b/linux/main.cpp @@ -43,7 +43,7 @@ int main(int argc, char *argv[]) { sigaction(SIGINT, &sigIntHandler, NULL); // read default stylesheet from disk - std::ifstream stylefile("./build/Release/style.min.js"); + std::ifstream stylefile("./style.min.js"); std::stringstream stylejson; stylejson << stylefile.rdbuf();