From 96941b76980e568b7b25e87760ed190662630779 Mon Sep 17 00:00:00 2001 From: Kalle Vahlman Date: Tue, 30 Aug 2011 09:02:12 +0300 Subject: Move default build & install dirs to current working dir --- Makefile | 4 ++-- lcmodule/Makefile | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 4ac2448..76c8b6f 100644 --- a/Makefile +++ b/Makefile @@ -247,14 +247,14 @@ configfile: $(if $(wildcard $(config_file)),,config) @echo $< > /dev/null .PHONY: config -config: BUILDFOLDER := $(if $(strip $(BUILDFOLDER)),$(BUILDFOLDER),$(shell bash -c "mktemp -d")) +config: BUILDFOLDER := $(if $(strip $(BUILDFOLDER)),$(BUILDFOLDER),$(shell bash -c "pwd")/build) config: AUTO_DIR_LIB :=$(BUILDFOLDER)/autogen/ config: LIB_x32 := $(BUILDFOLDER)/liblcdriver.so config: LIB_x64 := $(BUILDFOLDER)/liblcdriver_x64.so config: LIB_x32_OBJ_DIR := x32 config: LIB_x64_OBJ_DIR := x64 config: CXX := $(CROSS_PREFIX)g++ -config: LCD_INSTALLDIR := /tmp/ +config: LCD_INSTALLDIR := $(shell pwd)/dist config: @echo Generating config file... @rm -f $(config_file) diff --git a/lcmodule/Makefile b/lcmodule/Makefile index 779e8ca..f58a0dd 100644 --- a/lcmodule/Makefile +++ b/lcmodule/Makefile @@ -270,14 +270,14 @@ configfile: $(if $(wildcard $(config_file)),,config) @echo $< > /dev/null .PHONY: config -config: BUILDFOLDER := $(if $(strip $(BUILDFOLDER)),$(BUILDFOLDER),$(shell bash -c "mktemp -d")) +config: BUILDFOLDER := $(if $(strip $(BUILDFOLDER)),$(BUILDFOLDER),$(shell bash -c "pwd")) config: LCM_AUTO_DIR:=$(BUILDFOLDER)/autogen config: AUTO_DIR_LIB:=$(LCM_AUTO_DIR)/lib config: AUTO_DIR_LOADER:=$(LCM_AUTO_DIR)/loader config: LIB_x32 := $(BUILDFOLDER)/liblcm.so.1 config: LIB_x64 := $(BUILDFOLDER)/liblcm_x64.so.1 -config: LCMLIB_INSTALLDIR := /tmp/ -config: LCMLDR_INSTALLDIR := /tmp/ +config: LCMLIB_INSTALLDIR := $(shell pwd)/dist +config: LCMLDR_INSTALLDIR := $(shell pwd)/dist config: LIB_x32_OBJ_DIR := x32 config: LIB_x64_OBJ_DIR := x64 config: CC := gcc -- cgit v1.2.3