Makefile 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. # Sapphire
  2. #
  3. # Copyright (C) 2018 Alyssa Rosenzweig
  4. # Copyright (C) 2018 eq
  5. #
  6. # This program is free software; you can redistribute it and/or modify
  7. # it under the terms of the GNU General Public License as published by
  8. # the Free Software Foundation; either version 2 of the License, or
  9. # (at your option) any later version.
  10. #
  11. # This program is distributed in the hope that it will be useful,
  12. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. # GNU General Public License for more details.
  15. #
  16. # You should have received a copy of the GNU General Public License
  17. # along with this program; if not, write to the Free Software
  18. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
  19. all: hogan-3.0.1.js emoji.js countries-rev.js xss.txt
  20. echo "Built!"
  21. clean:
  22. rm *.js
  23. hogan-3.0.1.js:
  24. -rm hogan-3.0.1.js
  25. wget http://twitter.github.io/hogan.js/builds/3.0.1/hogan-3.0.1.js
  26. xss.txt:
  27. -rm xss.txt
  28. wget https://raw.githubusercontent.com/swisskyrepo/PayloadsAllTheThings/master/XSS%20injection/Intruders/xss_alert.txt -O xss.txt
  29. build/emoji.json:
  30. -rm build/emoji.json
  31. wget https://raw.githubusercontent.com/omnidan/node-emoji/master/lib/emoji.json -O build/emoji.json
  32. emoji.js: build/emoji.json emoji-extra.json
  33. nodejs tools/json-to-js.js build/emoji.json emoji-extra.json emoji.js EMOJIS
  34. build/countries.json:
  35. -rm build/countries.json
  36. wget http://country.io/names.json -O build/countries.json
  37. countries-rev.js: build/countries.json
  38. nodejs tools/reverse-json.js build/countries.json countries-rev.js