Page MenuHomeDevCentral

Makefile
No OneTemporary

Makefile

# -------------------------------------------------------------
# Makefile for Keruald monorepo
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Project: Keruald
# Description: Generate repository needed files to start dev
# License: Trivial work, not eligible to copyright
# -------------------------------------------------------------
RM=rm -f
RMDIR=rm -rf
MKDIR=mkdir -p
GENERATED_FROM_TEMPLATES=phpcs.xml phpunit.xml
PHP=php
PHPUNIT=vendor/bin/phpunit
PHP_EXTENSIONS != php -r 'echo ini_get("extension_dir");'
XDEBUG=xdebug.so
# -------------------------------------------------------------
# Main targets
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
all: build-dev build-repo
clean: clean-dev clean-repo
regenerate: clean-repo build-repo clean-dev build-dev
# -------------------------------------------------------------
# Build targets for libraries development
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
build-dev: vendor
clean-dev:
${RMDIR} vendor
vendor:
composer update
# -------------------------------------------------------------
# Build targets for monorepo maintenance
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
build-repo: $(GENERATED_FROM_TEMPLATES) composer.json
clean-repo:
${RM} $(GENERATED_FROM_TEMPLATES) composer.json
$(GENERATED_FROM_TEMPLATES):
_utils/templates/resolve.py _templates/$@.in > $@
composer.json:
_utils/templates/generate-compose-json.php > composer.json
# -------------------------------------------------------------
# Test targets
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
coverage:
$(MKDIR) .phpunit.cache/coverage/html
$(PHP) -d zend_extension=$(PHP_EXTENSIONS)/$(XDEBUG) -d xdebug.mode=coverage \
$(PHPUNIT) --coverage-html .phpunit.cache/coverage/html

File Metadata

Mime Type
text/x-makefile
Expires
Fri, Jan 30, 06:03 (8 h, 54 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3371919
Default Alt Text
Makefile (1 KB)

Event Timeline