[ Index ]

PHP Cross Reference of Phabricator

title

Body

[close]

/externals/twilio-php/ -> Makefile (source)

   1  # Twilio API helper library.
   2  # See LICENSE file for copyright and license details.
   3  
   4  define LICENSE
   5  <?php
   6  
   7  /**
   8   * Twilio API helper library.
   9   *
  10   * @category  Services
  11   * @package   Services_Twilio
  12   * @author    Neuman Vong <[email protected]>
  13   * @license   http://creativecommons.org/licenses/MIT/ MIT
  14   * @link      http://pear.php.net/package/Services_Twilio
  15   */
  16  endef
  17  export LICENSE
  18  
  19  COMPOSER = $(shell which composer)
  20  ifeq ($(strip $(COMPOSER)),)
  21      COMPOSER = php composer.phar
  22  endif
  23  
  24  all: test
  25  
  26  clean:
  27      @rm -rf dist venv
  28  
  29  PHP_FILES = `find dist -name \*.php`
  30  dist: clean
  31      @mkdir dist
  32      @git archive master | (cd dist; tar xf -)
  33      @for php in $(PHP_FILES); do\
  34        echo "$$LICENSE" > $$php.new; \
  35        tail -n+2 $$php >> $$php.new; \
  36        mv $$php.new $$php; \
  37      done
  38  
  39  test-install:
  40      # Composer: http://getcomposer.org/download/
  41      $(COMPOSER) install
  42  
  43  install:
  44      pear channel-discover twilio.github.com/pear
  45      pear install twilio/Services_Twilio
  46  
  47  # if these fail, you may need to install the helper library - run "make
  48  # test-install"
  49  test:
  50      @PATH=vendor/bin:$(PATH) phpunit --strict --colors --configuration tests/phpunit.xml;
  51  
  52  venv:
  53      virtualenv venv
  54  
  55  docs-install: venv
  56      . venv/bin/activate; pip install -r docs/requirements.txt
  57  
  58  docs:
  59      . venv/bin/activate; cd docs && make html
  60  
  61  release-install:
  62      pear channel-discover twilio.github.com/pear || true
  63      pear channel-discover pear.pirum-project.org || true
  64      pear install pirum/Pirum || true
  65      pear install XML_Serializer-0.20.2 || true
  66      pear install PEAR_PackageFileManager2 || true
  67  
  68  authors:
  69      echo "Authors\n=======\n\nA huge thanks to all of our contributors:\n\n" > AUTHORS.md
  70      git log --raw | grep "^Author: " | cut -d ' ' -f2- | cut -d '<' -f1 | sed 's/^/- /' | sort | uniq >> AUTHORS.md
  71  
  72  .PHONY: all clean dist test docs docs-install test-install authors


Generated: Sun Nov 30 09:20:46 2014 Cross-referenced by PHPXref 0.7.1