GIST is an open-source application to share code. https://gist.deblan.org

Makefile 1.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. COMPOSER ?= composer
  2. NPM ?= npm
  3. GIT ?= git
  4. MKDIR ?= mkdir
  5. PHP ?= php
  6. RM ?= rm
  7. all: update clean-cache
  8. composer:
  9. @echo "Installing PHP dependencies"
  10. @echo "---------------------------"
  11. @echo
  12. ${COMPOSER} install
  13. npm:
  14. @echo "Installing CSS/JS dependencies"
  15. @echo "------------------------------"
  16. @echo
  17. ${NPM} install
  18. update:
  19. @echo "Updating application's dependencies"
  20. @echo "-----------------------------------"
  21. @echo
  22. ${GIT} pull origin master
  23. ${MKDIR} -p data/git
  24. ${MKDIR} -p data/cache
  25. ${COMPOSER} update
  26. ${NPM} install
  27. clean-cache:
  28. @echo "Removing cache"
  29. @echo "--------------"
  30. @echo
  31. ${RM} -fr cache/*
  32. run:
  33. @echo "Run development server"
  34. @echo "----------------------"
  35. @echo
  36. ${PHP} -S 127.0.0.1:8080 -t web
  37. propel:
  38. @echo "Propel migration"
  39. @echo "----------------"
  40. @echo
  41. ./vendor/propel/propel/bin/propel config:convert
  42. ./vendor/propel/propel/bin/propel model:build --recursive
  43. ./vendor/propel/propel/bin/propel migration:diff --recursive
  44. ./vendor/propel/propel/bin/propel migration:migrate --recursive