baikal/Makefile

28 lines
798 B
Makefile
Raw Normal View History

2016-01-28 20:58:54 -05:00
.PHONY: build-assets dist clean
2016-01-28 20:58:54 -05:00
BUILD_DIR="build/baikal"
2016-02-09 22:10:50 -05:00
BUILD_FILES=Core html Specific CHANGELOG.md LICENSE README.md composer.json
2016-01-28 20:58:54 -05:00
VERSION=$(shell php -r "include 'Core/Distrib.php'; echo BAIKAL_VERSION;")
dist: vendor/autoload.php
# Building Baikal $(VERSION)
rm -r $(BUILD_DIR)
mkdir -p $(BUILD_DIR)
cp -R $(BUILD_FILES) $(BUILD_DIR)
touch $(BUILD_DIR)/Specific/ENABLE_INSTALL
composer install -d $(BUILD_DIR)
rm $(BUILD_DIR)/composer.*
cd build; zip -r baikal-$(VERSION).zip baikal/
build-assets: vendor/autoload.php
cat vendor/sabre/dav/examples/sql/mysql.*.sql > Core/Resources/Db/MySQL/db.sql
cat vendor/sabre/dav/examples/sql/sqlite.*.sql > Core/Resources/Db/SQLite/db.sql
vendor/autoload.php: composer.lock
composer install
composer.lock: composer.json
composer update