mirror of
https://github.com/ZwareBear/awx.git
synced 2026-03-20 07:43:35 -05:00
switch to CURDIR
This commit is contained in:
5
Makefile
5
Makefile
@@ -1,6 +1,3 @@
|
||||
mkfile_path := $(abspath $(lastword $(MAKEFILE_LIST)))
|
||||
current_dir := $(dir $(mkfile_path))
|
||||
|
||||
include awx/ui-next/Makefile
|
||||
|
||||
PYTHON ?= python3.9
|
||||
@@ -402,7 +399,7 @@ bulk_data:
|
||||
# UI TASKS
|
||||
# --------------------------------------
|
||||
|
||||
UI_BUILD_FLAG_FILE = $(current_dir)ui/.ui-built
|
||||
UI_BUILD_FLAG_FILE = $(CURDIR)/ui/.ui-built
|
||||
|
||||
clean-ui:
|
||||
rm -rf node_modules
|
||||
|
||||
@@ -1,21 +1,14 @@
|
||||
ui_next_mkfile_path := $(abspath $(lastword $(MAKEFILE_LIST)))
|
||||
ui_next_dir := $(dir $(ui_next_mkfile_path))
|
||||
ui_next_dir := $(shell realpath --relative-to $(CURDIR) $(dir $(ui_next_mkfile_path)))
|
||||
|
||||
ifeq ($(current_dir), undefined)
|
||||
ui_next_dir := $(dir $(ui_next_mkfile_path))
|
||||
else
|
||||
ui_next_dir := $(shell realpath --relative-to $(current_dir) $(ui_next_dir))/
|
||||
endif
|
||||
ANSIBLE_UI_DIR ?= $(ui_next_dir)/src
|
||||
|
||||
ANSIBLE_UI_GIT_REPO_HTTPS ?=
|
||||
ANSIBLE_UI_GIT_REPO_SSH ?=
|
||||
|
||||
ANSIBLE_UI_GIT_BRANCH ?= main
|
||||
|
||||
ANSIBLE_UI_LOCAL ?=
|
||||
|
||||
ANSIBLE_UI_DIR ?= $(ui_next_dir)ansible-ui
|
||||
|
||||
.PHONY: ui-next/clone-https
|
||||
## Shallow clone the ui-next repo via https skip if ANSIBLE_UI_GIT_REPO_HTTPS is undefined
|
||||
ui-next/clone-https:
|
||||
|
||||
Reference in New Issue
Block a user