2023-10-10 23:29:26 -04:00
|
|
|
# Variables
|
2024-10-13 16:36:35 -04:00
|
|
|
DEFAULT_CONFIGURATION ?= release
|
|
|
|
LOG_LEVEL = debug
|
|
|
|
|
|
|
|
# Default Target
|
2024-10-13 16:40:55 -04:00
|
|
|
all: release release-compressed debug-compressed release-executable release-compressed-executable debug-compressed-executable
|
2024-10-13 16:36:35 -04:00
|
|
|
|
|
|
|
# Build Steps
|
|
|
|
release:
|
|
|
|
ncc build --config=release --log-level $(LOG_LEVEL)
|
|
|
|
release-compressed:
|
|
|
|
ncc build --config=release-compressed --log-level $(LOG_LEVEL)
|
|
|
|
debug-compressed:
|
|
|
|
ncc build --config=debug-compressed --log-level $(LOG_LEVEL)
|
|
|
|
release-executable:
|
|
|
|
ncc build --config=release-executable --log-level $(LOG_LEVEL)
|
|
|
|
release-compressed-executable:
|
|
|
|
ncc build --config=release-compressed-executable --log-level $(LOG_LEVEL)
|
|
|
|
debug-compressed-executable:
|
|
|
|
ncc build --config=debug-compressed-executable --log-level $(LOG_LEVEL)
|
|
|
|
|
|
|
|
|
|
|
|
install: release
|
|
|
|
ncc package install --package=build/release/net.nosial.loglib.ncc --skip-dependencies --build-source --reinstall -y --log-level $(LOG_LEVEL)
|
|
|
|
|
|
|
|
test: release
|
|
|
|
[ -f phpunit.xml ] || { echo "phpunit.xml not found"; exit 1; }
|
|
|
|
phpunit
|
2022-12-13 23:20:41 -05:00
|
|
|
|
2023-03-01 20:29:21 -05:00
|
|
|
clean:
|
2024-10-13 16:36:35 -04:00
|
|
|
rm -rf build
|
2023-10-10 23:29:26 -04:00
|
|
|
|
2024-10-13 16:40:55 -04:00
|
|
|
.PHONY: all install test clean release release-compressed debug-compressed release-executable release-compressed-executable debug-compressed-executable
|