baikal/Makefile
Evert Pot 59fdddcee3 Merge pull request #469 from fruux/remove_enable_admin_install
Remove ENABLE_INSTALL / ENABLE_ADMIN features
2016-03-12 19:34:13 -05:00

31 lines
983 B
Makefile

.PHONY: build-assets dist clean
BUILD_DIR="build/baikal"
BUILD_FILES=Core html CHANGELOG.md LICENSE README.md composer.json
VERSION=$(shell php -r "include 'Core/Distrib.php'; echo BAIKAL_VERSION;")
dist: vendor/autoload.php
# Building Baikal $(VERSION)
rm -r $(BUILD_DIR); true
mkdir -p $(BUILD_DIR) $(BUILD_DIR)/Specific $(BUILD_DIR)/Specific/db
touch $(BUILD_DIR)/Specific/db/.empty
cp -R $(BUILD_FILES) $(BUILD_DIR)
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
clean:
# Wipe out all local data, and go back to a clean install
rm Specific/config.php Specific/config.system.php Specific/db/db.sqlite; true