summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorGjorgji <gjorgji.petkovski@seavus.com>2011-11-01 09:47:40 +0100
committerViktor Mladenovski <viktor.mladenovski@seavus.com>2012-05-25 14:34:31 +0200
commit637740b7d9a5b9788e50e926b6cb459489cffa0c (patch)
tree61f0ec39f2870f079a2001277dd9f270d0050986 /Makefile
parent6a702a0d231d02360066f718c5ef4e38431ddc8a (diff)
Create temp files inside the build root.
ST-Ericsson ID: 369164 ST-Ericsson FOSS-OUT ID: NA Change-Id: I5f7558fe73e94936a62a068889b1f236a8a79821 Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/35831 Reviewed-by: QATOOLS Reviewed-by: Zoran ANCEVSKI <zoran.ancevski@seavus.com> Tested-by: Vlatko STENKOSKI Tested-by: Aleksandar GASOSKI <aleksandar.gasoski@seavus.com> Reviewed-by: Vlatko PISTOLOV <vlatko.pistolov@seavus.com> Tested-by: Vlatko PISTOLOV <vlatko.pistolov@seavus.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 8 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 58c3b55..7438a0a 100644
--- a/Makefile
+++ b/Makefile
@@ -7,6 +7,7 @@ endif
XALAN_PATH:=./lcmodule/tools/xalan-j_2_7_1/
LCD_CONFIG:=./source/config/
+LCD_DIR:=./
WIN_BINARIES=./win_binaries/
LIBSRC := \
@@ -248,7 +249,7 @@ configfile: $(if $(wildcard $(config_file)),,config)
@echo $< > /dev/null
.PHONY: config
-config: BUILDFOLDER := $(if $(strip $(BUILDFOLDER)),$(BUILDFOLDER),$(shell bash -c "mktemp -d"))
+config: BUILDFOLDER := $(LCD_DIR)/out
config: AUTO_DIR_LIB :=$(BUILDFOLDER)/autogen/
config: LIB_x32 := $(BUILDFOLDER)/liblcdriver.so
config: LIB_x64 := $(BUILDFOLDER)/liblcdriver_x64.so
@@ -288,15 +289,18 @@ clean:
$(if $(BUILDFOLDER), \
$(if $(LIB_x32_OBJ_DIR), \
@rm -f $(BUILDFOLDER)/$(LIB_x32_OBJ_DIR)/*.o \
- @rm -rf $(BUILDFOLDER)/$(LIB_x32_OBJ_DIR),),)
+ @rm -rf $(BUILDFOLDER)/$(LIB_x32_OBJ_DIR) \
+ @rm -rf $(BUILDFOLDER),),)
ifeq ($(LBITS),64)
$(if $(BUILDFOLDER), \
$(if $(LIB_x64_OBJ_DIR), \
@rm -f $(BUILDFOLDER)/$(LIB_x64_OBJ_DIR)/*.o \
- @rm -rf $(BUILDFOLDER)/$(LIB_x64_OBJ_DIR),),)
+ @rm -rf $(BUILDFOLDER)/$(LIB_x64_OBJ_DIR) \
+ @rm -rf $(BUILDFOLDER),),)
endif
$(if $(BUILDFOLDER), \
- @rm -f $(BUILDFOLDER)/*.so*,)
+ @rm -f $(BUILDFOLDER)/*.so* \
+ @rm -rf $(BUILDFOLDER),)
distclean: clean
$(if $(AUTO_DIR_LIB), \