mirror of
https://github.com/nosial/FileServer.git
synced 2025-06-07 13:48:36 +00:00
Added ncc project file
This commit is contained in:
parent
4c99228979
commit
782c7f66f2
11 changed files with 635 additions and 0 deletions
29
Makefile
Normal file
29
Makefile
Normal file
|
@ -0,0 +1,29 @@
|
|||
# Variables
|
||||
DEFAULT_CONFIGURATION ?= release
|
||||
LOG_LEVEL = debug
|
||||
|
||||
# Default Target
|
||||
all: release debug release_executable debug_executable
|
||||
|
||||
# Build Steps
|
||||
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)
|
||||
|
||||
|
||||
install: release
|
||||
ncc package install --package=build/release/net.nosial.file_server.ncc --skip-dependencies --build-source --reinstall -y --log-level $(LOG_LEVEL)
|
||||
|
||||
test: release
|
||||
[ -f phpunit.xml ] || { echo "phpunit.xml not found"; exit 1; }
|
||||
phpunit
|
||||
|
||||
clean:
|
||||
rm -rf build
|
||||
|
||||
.PHONY: all install test clean release debug release_executable debug_executable
|
Loading…
Add table
Add a link
Reference in a new issue