openshift makefile
authorMichael Wallner <mike@php.net>
Tue, 17 Dec 2013 14:20:58 +0000 (15:20 +0100)
committerMichael Wallner <mike@php.net>
Tue, 17 Dec 2013 14:20:58 +0000 (15:20 +0100)
.gitignore
composer.json
composer.lock
openshift.mk [new file with mode: 0644]

index 40b7eda78c8e121dc3a93eb1a2ec7e0f99f2f12c..030f4e0e6e9fe4ac8c7067e656cfb60f041a8aa4 100644 (file)
@@ -1 +1,3 @@
 /nbproject/
+/composer.phar
+/vendor/
index 2a36108e6da70eda09853ac4869ab836f933bf7f..e8a17617c254c83bb28d9435424c25838e73f394 100644 (file)
@@ -1,4 +1,7 @@
 {
+    "name": "m6w6/mdref",
+    "description": "Quick Markdown Reference Browser",
+    "license": "BSD-2-Clause",
     "require": {
         "m6w6/autocracy": "dev-master"
     }
index 11a05e817a79a89b28cb9383c034516c56a0e774..611129a57fcaae271a6334718079e85bc255501d 100644 (file)
@@ -3,7 +3,7 @@
         "This file locks the dependencies of your project to a known state",
         "Read more about it at http://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file"
     ],
-    "hash": "0147473751b895f221e765fd6fb1fc2b",
+    "hash": "6fce67cace9f9c420e3ef4784880df8a",
     "packages": [
         {
             "name": "m6w6/autocracy",
diff --git a/openshift.mk b/openshift.mk
new file mode 100644 (file)
index 0000000..d8966be
--- /dev/null
@@ -0,0 +1,18 @@
+PHP = $(OPENSHIFT_DATA_DIR)/php-$(PHP_VERSION)/bin/php
+
+all: vendor
+
+.PHONY: all
+
+vendor: composer.lock
+       $(PHP) composer.phar install
+       mkdir vendor 2>/dev/null || touch vendor
+
+composer.lock: composer.json
+       $(PHP) composer.phar update
+
+composer.json: composer.phar
+       $(PHP) composer.phar validate
+
+composer.phar:
+       curl https://getcomposer.org/installer | $(PHP)