Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 19 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ CMAKE_ARGS ?=
VERBOSE ?=
FORCE_CLANG_FORMAT ?=
QT3D_USE_RHI ?= OFF
RELEASE_OUTPUT ?= $(MODMESH_ROOT)/build
RELEASE_ARTIFACT ?= $(RELEASE_OUTPUT)/pilot.dmg
RELEASE_ARGS ?=

# !!! NOTE: USING ANY VENV IS STRONGLY DISCOURAGED IN DEVELOPING MODMESH !!!
# This treatment is a "smarter" way to find python3-config executable.
Expand All @@ -54,7 +57,8 @@ WHICH_PYTHON := $(shell which python3)
REALPATH_PYTHON := $(realpath $(WHICH_PYTHON))
export DIRNAME_PYTHON := $(dir $(REALPATH_PYTHON))

pyextsuffix := $(shell $(DIRNAME_PYTHON)/python3-config --extension-suffix)
pyextsuffix := $(shell if [ -x "$(DIRNAME_PYTHON)/python3-config" ]; then \
$(DIRNAME_PYTHON)/python3-config --extension-suffix; fi)
pyvminor := $(shell python3 -c 'import sys; print("%d%d" % sys.version_info[0:2])')

ifeq ($(CMAKE_BUILD_TYPE), Debug)
Expand Down Expand Up @@ -162,6 +166,20 @@ run_pilot_pytest: pilot
env $(RUNENV) PYTEST_OPTS="$(PYTEST_OPTS)" \
cmake --build $(BUILD_PATH) --target $@ VERBOSE=$(VERBOSE)

.PHONY: release-check
release-check:
$(MODMESH_ROOT)/contrib/bundle/bundle-with-homebrew.sh check

.PHONY: release
release:
$(MODMESH_ROOT)/contrib/bundle/bundle-with-homebrew.sh all \
--output "$(RELEASE_OUTPUT)" $(RELEASE_ARGS)

.PHONY: release-test
release-test:
$(MODMESH_ROOT)/contrib/bundle/bundle-with-homebrew.sh verify \
"$(RELEASE_ARTIFACT)"

.PHONY: standalone_buffer_setup
standalone_buffer_setup:
$(MAKE) -C contrib/standalone_buffer copy
Expand Down
Loading
Loading