Skip to content

Commit c60c361

Browse files
committed
Updated build scripts
1 parent 36df649 commit c60c361

File tree

2 files changed

+18
-18
lines changed

2 files changed

+18
-18
lines changed

make/configure.mk

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,6 @@ include $(BASEDIR)/make/tools.mk
3737
include $(BASEDIR)/modules.mk
3838
include $(BASEDIR)/dependencies.mk
3939

40-
# Definitions
41-
ifeq ($(PLATFORM),Windows)
42-
PREFIX := $(BASEDIR)/INSTALL
43-
ETCDIR := $(BASEDIR)/etc
44-
else
45-
PREFIX := /usr/local
46-
ETCDIR := /etc
47-
endif
48-
4940
ifeq ($(DEVEL),1)
5041
X_URL_SUFFIX = _RW
5142
else

make/paths.mk

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,24 @@
1818
# along with lsp-r3d-base-lib. If not, see <https://www.gnu.org/licenses/>.
1919
#
2020

21+
# Installation prefix
22+
ifndef PREFIX
23+
ifeq ($(PLATFORM),Windows)
24+
PREFIX := $(BASEDIR)/INSTALL
25+
else
26+
PREFIX := /usr/local
27+
endif
28+
endif
29+
30+
# Path to configuration
31+
ifndef ETCDIR
32+
ifeq ($(PLATFORM),Windows)
33+
ETCDIR := $(PREFIX)/etc
34+
else
35+
ETCDIR := /etc
36+
endif
37+
endif
38+
2139
LIBDIR := $(PREFIX)/lib
2240
BINDIR := $(PREFIX)/bin
2341
SHAREDDIR := $(PREFIX)/share
@@ -28,15 +46,6 @@ HOST_BUILDDIR := $(BUILDDIR)/host
2846
MODULES := $(BASEDIR)/modules
2947
CONFIG := $(BASEDIR)/.config.mk
3048

31-
# Installation prefix
32-
ifndef PREFIX
33-
ifeq ($(PLATFORM),Windows)
34-
PREFIX := $(ProgramFiles)
35-
else
36-
PREFIX := /usr/local
37-
endif
38-
endif
39-
4049
# Library prefix
4150
ifndef LIBDIR
4251
LIBDIR := $(PREFIX)/lib

0 commit comments

Comments
 (0)