From 491fed3494ad5fc2e153f415bdf1f9a17503d5d4 Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Sun, 21 Nov 2021 18:38:03 +0100 Subject: Linux/FreeBSD: Fix calling "make install" without specifying DESTDIR, which should work by installing into /usr --- src/Main/Main.make | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/Main') diff --git a/src/Main/Main.make b/src/Main/Main.make index 37abaecb..2c11d361 100755 --- a/src/Main/Main.make +++ b/src/Main/Main.make @@ -269,7 +269,9 @@ endif install: prepare +ifneq "$(DESTDIR)" "" mkdir -p $(DESTDIR) +endif cp -R $(BASE_DIR)/Setup/Linux/usr $(DESTDIR)/ ifeq "$(TC_BUILD_CONFIG)" "Release" @@ -321,7 +323,9 @@ endif install: prepare +ifneq "$(DESTDIR)" "" mkdir -p $(DESTDIR) +endif cp -R $(BASE_DIR)/Setup/FreeBSD/usr $(DESTDIR)/. ifeq "$(TC_BUILD_CONFIG)" "Release" -- cgit v1.2.3