2016-01-28 20:58:54 -05:00
|
|
|
.PHONY: build-assets dist clean
|
2016-01-21 13:20:38 -05:00
|
|
|
|
2016-01-28 20:58:54 -05:00
|
|
|
BUILD_DIR="build/baikal"
|
|
|
|
|
2016-02-20 15:58:14 -05:00
|
|
|
BUILD_FILES=Core html 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)
|
2016-02-15 15:36:34 -05:00
|
|
|
rm -r $(BUILD_DIR); true
|
2016-02-20 15:58:14 -05:00
|
|
|
mkdir -p $(BUILD_DIR) $(BUILD_DIR)/Specific $(BUILD_DIR)/Specific/db
|
2016-02-24 15:58:04 -05:00
|
|
|
touch $(BUILD_DIR)/Specific/db/.empty
|
2016-01-28 20:58:54 -05:00
|
|
|
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/
|
2016-01-21 13:20:38 -05:00
|
|
|
|
|
|
|
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
|