Skip to content

Commit c705b4e

Browse files
authored
Make - use relative paths (#7519)
#changelog #make
1 parent 202aa24 commit c705b4e

File tree

15 files changed

+19
-18
lines changed

15 files changed

+19
-18
lines changed

libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk

+3-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ OF_SHARED_MAKEFILES_PATH=$(OF_ROOT)/libs/openFrameworksCompiled/project/makefile
55

66
# if APPNAME is not defined, set it to the project dir name
77
ifndef APPNAME
8-
APPNAME = $(shell basename `pwd`)
8+
APPNAME = $(shell basename "`pwd`")
99
endif
1010

1111
include $(OF_SHARED_MAKEFILES_PATH)/config.shared.mk
@@ -301,7 +301,8 @@ $(OF_PROJECT_OBJ_OUTPUT_PATH)%.o: $(PROJECT_EXTERNAL_SOURCE_PATHS)/%.S $(OF_PROJ
301301

302302

303303
#Rules to compile the addons sources when the addon path is specified explicitly
304-
PROJECT_ADDONS_OBJ_PATH=$(realpath .)/$(OF_PROJECT_OBJ_OUTPUT_PATH)addons/
304+
# PROJECT_ADDONS_OBJ_PATH=$(realpath .)/$(OF_PROJECT_OBJ_OUTPUT_PATH)addons/
305+
PROJECT_ADDONS_OBJ_PATH=./$(OF_PROJECT_OBJ_OUTPUT_PATH)addons/
305306
$(PROJECT_ADDONS_OBJ_PATH)%.o: %.cpp $(OF_PROJECT_OBJ_OUTPUT_PATH).compiler_flags
306307
ifdef PROJECT_ADDON_PATHS
307308
@echo "Compiling" $<

libs/openFrameworksCompiled/project/makefileCommon/config.addons.mk

+2-2
Original file line numberDiff line numberDiff line change
@@ -70,12 +70,12 @@ endef
7070
# 6: if PROCESS_NEXT eval the line to put the variable in the makefile space
7171
define parse_addon
7272
$(if $(wildcard $(PROJECT_ROOT)/$1), \
73-
$(eval addon=$(realpath $(addprefix $(PROJECT_ROOT)/, $1))) \
73+
$(eval addon=$(addprefix $(PROJECT_ROOT)/, $1)) \
7474
$(eval addon_obj_path=$(PROJECT_ROOT)) \
7575
$(eval ADDON_PATHS+= $(dir $(addon))) \
7676
$(eval obj_prefix=$(OF_PROJECT_OBJ_OUTPUT_PATH)addons/) \
7777
, \
78-
$(eval addon=$(realpath $(addprefix $(OF_ADDONS_PATH)/, $1))) \
78+
$(eval addon=$(addprefix $(OF_ADDONS_PATH)/, $1)) \
7979
$(eval addon_obj_path=$(OF_ADDONS_PATH)) \
8080
$(eval obj_prefix=$(OF_PROJECT_OBJ_OUTPUT_PATH)) \
8181
) \

libs/openFrameworksCompiled/project/makefileCommon/config.project.mk

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
# lists of source files, search paths, libraries, etc.
44
#
55
ifndef OF_ROOT
6-
OF_ROOT= $(realpath ../../..)
6+
OF_ROOT= ../../..
77
endif
88

99
ifndef PROJECT_ROOT
10-
PROJECT_ROOT= $(realpath .)
10+
PROJECT_ROOT= .
1111
endif
1212

1313

libs/openFrameworksCompiled/project/makefileCommon/config.shared.mk

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020

2121
SHELL ?= /bin/sh
22-
OF_ROOT ?= $(realpath ../../..)
22+
OF_ROOT ?= ../../..
2323
PLATFORM_VARIANT ?= default
2424

2525
# ifeq ($(CC),$(EMSCRIPTEN)/emcc)

scripts/qtcreator/templates/wizards/openFrameworks/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ endif
66

77
# make sure the the OF_ROOT location is defined
88
ifndef OF_ROOT
9-
OF_ROOT=$(realpath ../../..)
9+
OF_ROOT=../../..
1010
endif
1111

1212
# call the project makefile!

scripts/qtcreator/templates/wizards/openFrameworksUpdate/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ endif
66

77
# make sure the the OF_ROOT location is defined
88
ifndef OF_ROOT
9-
OF_ROOT=$(realpath ../../..)
9+
OF_ROOT=../../..
1010
endif
1111

1212
# call the project makefile!

scripts/templates/emscripten/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ endif
66

77
# make sure the the OF_ROOT location is defined
88
ifndef OF_ROOT
9-
OF_ROOT=$(realpath ../../..)
9+
OF_ROOT=../../..
1010
endif
1111

1212
# call the project makefile!

scripts/templates/linux/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ endif
66

77
# make sure the the OF_ROOT location is defined
88
ifndef OF_ROOT
9-
OF_ROOT=$(realpath ../../..)
9+
OF_ROOT=../../..
1010
endif
1111

1212
# call the project makefile!

scripts/templates/linux64/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ endif
66

77
# make sure the the OF_ROOT location is defined
88
ifndef OF_ROOT
9-
OF_ROOT=$(realpath ../../..)
9+
OF_ROOT=../../..
1010
endif
1111

1212
# call the project makefile!

scripts/templates/linuxaarch64/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ endif
66

77
# make sure the the OF_ROOT location is defined
88
ifndef OF_ROOT
9-
OF_ROOT=$(realpath ../../..)
9+
OF_ROOT=../../..
1010
endif
1111

1212
# call the project makefile!

scripts/templates/linuxarmv6l/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ endif
66

77
# make sure the the OF_ROOT location is defined
88
ifndef OF_ROOT
9-
OF_ROOT=$(realpath ../../..)
9+
OF_ROOT=../../..
1010
endif
1111

1212
# call the project makefile!

scripts/templates/linuxarmv7l/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ endif
66

77
# make sure the the OF_ROOT location is defined
88
ifndef OF_ROOT
9-
OF_ROOT=$(realpath ../../..)
9+
OF_ROOT=../../..
1010
endif
1111

1212
# call the project makefile!

scripts/templates/msys2/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ endif
66

77
# make sure the the OF_ROOT location is defined
88
ifndef OF_ROOT
9-
OF_ROOT=$(realpath ../../..)
9+
OF_ROOT=../../..
1010
endif
1111

1212
# call the project makefile!

scripts/templates/osx/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ endif
66

77
# make sure the the OF_ROOT location is defined
88
ifndef OF_ROOT
9-
OF_ROOT=$(realpath ../../..)
9+
OF_ROOT=../../..
1010
endif
1111

1212
# call the project makefile!

scripts/templates/vscode/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ endif
66

77
# make sure the the OF_ROOT location is defined
88
ifndef OF_ROOT
9-
OF_ROOT=$(realpath ../../..)
9+
OF_ROOT=../../..
1010
endif
1111

1212
# call the project makefile!

0 commit comments

Comments
 (0)