Skip to content
代码片段 群组 项目
提交 98db9068 编辑于 作者: Nick Thomas's avatar Nick Thomas
浏览文件

Merge branch 'configurable-build-target-dir' into 'master'

Allow to configure `BUILD_DIR` and `TARGET_DIR`

See merge request gitlab-org/gitlab-workhorse!308
No related branches found
No related tags found
无相关合并请求
PREFIX=/usr/local
PKG := gitlab.com/gitlab-org/gitlab-workhorse
BUILD_DIR := $(CURDIR)
TARGET_DIR := $(BUILD_DIR)/_build
BUILD_DIR ?= $(CURDIR)
TARGET_DIR ?= $(BUILD_DIR)/_build
TARGET_SETUP := $(TARGET_DIR)/.ok
BIN_BUILD_DIR := $(TARGET_DIR)/bin
PKG_BUILD_DIR := $(TARGET_DIR)/src/$(PKG)
......@@ -38,7 +38,7 @@ $(TARGET_SETUP):
$(call message,"Setting up target directory")
rm -rf $(TARGET_DIR)
mkdir -p "$(dir $(PKG_BUILD_DIR))"
ln -sf ../../../.. "$(PKG_BUILD_DIR)"
ln -sf "$(CURDIR)" "$(PKG_BUILD_DIR)"
mkdir -p "$(BIN_BUILD_DIR)"
touch "$(TARGET_SETUP)"
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册