socialbox-php/Makefile

29 lines
791 B
Makefile
Raw Permalink Normal View History

2024-08-31 16:36:22 -04:00
# Variables
2024-10-25 14:24:52 -04:00
DEFAULT_CONFIGURATION ?= release
2024-08-31 16:36:22 -04:00
LOG_LEVEL = debug
# Default Target
2024-10-25 14:24:52 -04:00
all: release debug release_executable debug_executable
2024-08-31 16:36:22 -04:00
# Build Steps
2024-10-25 14:24:52 -04:00
release:
ncc build --config=release --log-level $(LOG_LEVEL)
debug:
ncc build --config=debug --log-level $(LOG_LEVEL)
release_executable:
ncc build --config=release_executable --log-level $(LOG_LEVEL)
debug_executable:
ncc build --config=debug_executable --log-level $(LOG_LEVEL)
2024-08-31 16:36:22 -04:00
2024-09-24 14:20:21 -04:00
2024-10-25 14:24:52 -04:00
install: release
ncc package install --package=build/release/net.nosial.socialbox.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-24 14:20:21 -04:00
phpunit
2024-08-31 16:36:22 -04:00
clean:
rm -rf build
2024-10-25 14:24:52 -04:00
.PHONY: all install test clean release debug release_executable debug_executable