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"
|
|
|
|
|
2021-01-25 06:08:36 -05:00
|
|
|
BUILD_FILES=Core html 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
|
2020-03-22 15:56:59 -04:00
|
|
|
mkdir -p $(BUILD_DIR) $(BUILD_DIR)/Specific $(BUILD_DIR)/Specific/db $(BUILD_DIR)/config
|
2016-02-24 15:58:04 -05:00
|
|
|
touch $(BUILD_DIR)/Specific/db/.empty
|
2020-03-22 15:56:59 -04:00
|
|
|
touch $(BUILD_DIR)/config/.empty
|
2016-03-13 17:57:49 -04:00
|
|
|
rsync -av \
|
|
|
|
$(BUILD_FILES) \
|
|
|
|
--exclude="*.swp" \
|
|
|
|
$(BUILD_DIR)
|
2024-10-01 23:50:36 -04:00
|
|
|
composer config platform.php 8.2 -d $(BUILD_DIR)
|
2022-03-29 16:01:48 -04:00
|
|
|
composer install --no-interaction --no-dev -d $(BUILD_DIR)
|
2016-01-28 20:58:54 -05:00
|
|
|
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
|
2022-03-29 16:01:48 -04:00
|
|
|
composer install --no-interaction
|
2016-01-21 13:20:38 -05:00
|
|
|
|
|
|
|
composer.lock: composer.json
|
2022-03-29 16:01:48 -04:00
|
|
|
composer update --no-interaction
|
2016-02-23 16:46:00 -05:00
|
|
|
|
|
|
|
clean:
|
|
|
|
# Wipe out all local data, and go back to a clean install
|
2020-03-22 15:56:59 -04:00
|
|
|
rm config/baikal.yaml Specific/db/db.sqlite; true
|