libretime/legacy/Makefile

38 lines
669 B
Makefile
Raw Normal View History

SHELL = bash
all: vendor locale-build
2021-10-15 01:40:34 +02:00
TOOLS = tools/vendor
tools: $(TOOLS)
$(TOOLS):
composer --working-dir=tools install
2021-10-15 01:40:34 +02:00
locale-update:
$(MAKE) -C locale update
locale-build:
$(MAKE) -C locale clean build
vendor:
2021-10-15 01:40:34 +02:00
composer install --no-progress --no-interaction $(COMPOSER_ARGS)
2021-10-15 01:40:34 +02:00
.PHONY: test
test: vendor
cd tests && ../vendor/bin/phpunit
2021-10-15 01:40:34 +02:00
.PHONY: format
format: tools
$(TOOLS)/bin/php-cs-fixer fix
2021-10-15 01:40:34 +02:00
.PHONY: lint
lint: tools
$(TOOLS)/bin/php-cs-fixer fix --verbose --dry-run --diff
2021-10-15 01:40:34 +02:00
.PHONY: build
build:
COMPOSER_ARGS="--no-dev --ignore-platform-reqs" $(MAKE)
propel-gen: vendor
cd build && \
../vendor/bin/propel-gen \
-Dproject.home="$(shell pwd)"