2008-01-17 00:47:23 +01:00
|
|
|
#
|
|
|
|
# This makefile is a secondary way of installing SilverStripe.
|
|
|
|
# It is used for things like continuous integration
|
|
|
|
#
|
|
|
|
# Most users should simply visit the site root in your web browser.
|
|
|
|
#
|
|
|
|
|
2008-05-24 07:25:51 +02:00
|
|
|
suffix=`basename \`dirname \\\`pwd\\\`\``
|
|
|
|
|
2008-01-17 00:47:23 +01:00
|
|
|
install: mysite/_config.php
|
|
|
|
|
|
|
|
mysite/_config.php:
|
2008-05-24 07:25:51 +02:00
|
|
|
php install.php install SS_testdatabase_${suffix}
|
2008-01-17 00:47:23 +01:00
|
|
|
|
|
|
|
test: clean install
|
|
|
|
$(MAKE) -C sapphire test
|
|
|
|
|
|
|
|
clean:
|
|
|
|
if [ -f .htaccess ]; then rm .htaccess; fi
|
|
|
|
touch .htaccess
|
|
|
|
if [ -f mysite/_config.php ]; then rm mysite/_config.php; fi
|