GIST is an open-source application to share code.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Makefile 1.2KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. COMPOSER ?= composer
  2. BOWER ?= bower
  3. GIT ?= git
  4. MKDIR ?= mkdir
  5. PHP ?= php
  6. all: update
  7. composer:
  8. @echo "Installing application's dependencies"
  9. @echo "-------------------------------------"
  10. @echo
  11. $(COMPOSER) install $(COMPOSER_INSTALL_FLAGS)
  12. bower:
  13. @echo "Installing application's dependencies"
  14. @echo "-------------------------------------"
  15. @echo
  16. $(BOWER) install
  17. optimize:
  18. @echo "Optimizing Composer's autoloader, can take some time"
  19. @echo "----------------------------------------------------"
  20. @echo
  21. $(COMPOSER) dump-autoload --optimize
  22. update:
  23. @echo "Updating application's dependencies"
  24. @echo "-----------------------------------"
  25. @echo
  26. sh -c 'test -d app && $(GIT) add app && $(GIT) commit -m "Configuration"'
  27. $(GIT) pull origin master
  28. ${MKDIR} -p data/git
  29. $(COMPOSER) update
  30. $(BOWER) install
  31. run:
  32. @echo "Run development server"
  33. @echo "----------------------"
  34. @echo
  35. $(PHP) -S 127.0.0.1:8080 -t web
  36. propel:
  37. @echo "Propel migration"
  38. @echo "----------------"
  39. @echo
  40. ./vendor/propel/propel/bin/propel config:convert
  41. ./vendor/propel/propel/bin/propel model:build --recursive
  42. ./vendor/propel/propel/bin/propel migration:diff --recursive
  43. ./vendor/propel/propel/bin/propel migration:migrate --recursive