#
# Parameters
-CORE = 8
-PROJECT = drupal
-ENV = dev
-CONTAINER = kvmx # vagrant or even docker
-DATE = $(shell date +%Y%m%d)
-CWD = $(shell pwd)
-#DESTDIR ?= vendor
-DESTDIR ?= /var/www/data
-DRUPAL = $(DESTDIR)/drupal-$(CORE)
-DRUSH = drush -r $(DRUPAL) -l $(PROJECT)
+CORE = 8
+PROJECT = drupal
+ENV ?= dev
+CONTAINER = kvmx # vagrant or even docker
+DATE = $(shell date +%Y%m%d)
+CWD = $(shell pwd)
+DESTDIR ?= /var/www/data # vendor
+DRUPAL = $(DESTDIR)/drupal-$(CORE)
+DRUSH = drush -r $(DRUPAL) -l $(PROJECT)
+
+# Include local customizations/overrides, which might be .gitignore'd
+# See https://www.gnu.org/software/make/manual/html_node/Include.html
+-include Makefile.local
# Setup production environment
production: submodules post_receive drush settings ownership
# Setup the virtual machine using kvmx
kvmx:
- kvmx up
kvmx provision
# Old target
echo sql >> .gitignore
fi
+ if ! grep -q "^Makefile.local" .gitignore; then
+ echo Makefile.local >> .gitignore
+ fi
+
if [ ! -e "settings.dev.php" ]; then
cp $SHARE/drupal8/files/default.settings.php settings.dev.php
#cp $SHARE/drupal8/files/default.settings.php .