From 9d7a4b3fe45e2e82918a8cdf2dde323b3008ff84 Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Tue, 17 Dec 2013 15:20:58 +0100 Subject: [PATCH] openshift makefile --- .gitignore | 2 ++ composer.json | 3 +++ composer.lock | 2 +- openshift.mk | 18 ++++++++++++++++++ 4 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 openshift.mk diff --git a/.gitignore b/.gitignore index 40b7eda..030f4e0 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ /nbproject/ +/composer.phar +/vendor/ diff --git a/composer.json b/composer.json index 2a36108..e8a1761 100644 --- a/composer.json +++ b/composer.json @@ -1,4 +1,7 @@ { + "name": "m6w6/mdref", + "description": "Quick Markdown Reference Browser", + "license": "BSD-2-Clause", "require": { "m6w6/autocracy": "dev-master" } diff --git a/composer.lock b/composer.lock index 11a05e8..611129a 100644 --- a/composer.lock +++ b/composer.lock @@ -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 index 0000000..d8966be --- /dev/null +++ b/openshift.mk @@ -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) -- 2.30.2