optslib/Makefile

25 lines
605 B
Makefile
Raw Normal View History

2024-09-23 18:55:46 -04:00
# Variables
2024-10-13 16:52:34 -04:00
DEFAULT_CONFIGURATION ?= release
2024-09-23 18:55:46 -04:00
LOG_LEVEL = debug
# Default Target
2024-10-13 16:52:34 -04:00
all: release release-executable
2024-09-23 18:55:46 -04:00
# Build Steps
2024-10-13 16:52:34 -04:00
release:
ncc build --config=release --log-level $(LOG_LEVEL)
release-executable:
ncc build --config=release-executable --log-level $(LOG_LEVEL)
2024-09-23 18:55:46 -04:00
2024-10-13 16:52:34 -04:00
install: release
ncc package install --package=build/release/net.nosial.optslib.ncc --skip-dependencies --build-source --reinstall -y --log-level $(LOG_LEVEL)
test: release
[ -f phpunit.xml ] || { echo "phpunit.xml not found"; exit 1; }
2024-09-23 18:55:46 -04:00
phpunit
clean:
rm -rf build
2024-10-13 16:52:34 -04:00
.PHONY: all install test clean release release-executable