libretime/legacy/Makefile

46 lines
803 B
Makefile
Raw Permalink 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
export COMPOSER_ALLOW_SUPERUSER = true
COMPOSER_INSTALL = composer install \
--no-interaction \
--no-progress \
--no-plugins \
--no-scripts \
--optimize-autoloader
vendor:
$(COMPOSER_INSTALL)
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: locale-build
$(COMPOSER_INSTALL) --no-dev --ignore-platform-reqs
propel-gen: vendor
cd build && \
../vendor/bin/propel-gen \
-Dproject.home="$(shell pwd)"