Makefile 843 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. PACKAGE = php-gettext-$(VERSION)
  2. VERSION = 1.0.11
  3. DIST_FILES = \
  4. gettext.php \
  5. gettext.inc \
  6. streams.php \
  7. AUTHORS \
  8. README \
  9. COPYING \
  10. Makefile \
  11. examples/index.php \
  12. examples/pigs_dropin.php \
  13. examples/pigs_fallback.php \
  14. examples/locale/sr_CS/LC_MESSAGES/messages.po \
  15. examples/locale/sr_CS/LC_MESSAGES/messages.mo \
  16. examples/locale/de_CH/LC_MESSAGES/messages.po \
  17. examples/locale/de_CH/LC_MESSAGES/messages.mo \
  18. examples/update \
  19. tests/LocalesTest.php \
  20. tests/ParsingTest.php
  21. check:
  22. phpunit --verbose tests
  23. dist: check
  24. if [ -d $(PACKAGE) ]; then \
  25. rm -rf $(PACKAGE); \
  26. fi; \
  27. mkdir $(PACKAGE); \
  28. if [ -d $(PACKAGE) ]; then \
  29. cp -rp --parents $(DIST_FILES) $(PACKAGE); \
  30. tar cvzf $(PACKAGE).tar.gz $(PACKAGE); \
  31. rm -rf $(PACKAGE); \
  32. fi;
  33. clean:
  34. rm -f $(PACKAGE).tar.gz