Makefile 928 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. PACKAGE = php-gettext-$(VERSION)
  2. VERSION = 1.0.12
  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. sign: dist
  34. gpg --armor --sign --detach-sig $(PACKAGE).tar.gz
  35. clean:
  36. rm -f $(PACKAGE).tar.gz $(PACKAGE).tar.gz.asc