Makefile 1.5 KB

1234567891011121314151617181920212223242526272829303132333435
  1. .PHONY: install
  2. install:
  3. test -d $(HOME)/.tcms || mkdir $(HOME)/.tcms
  4. test -d www/themes || mkdir www/themes
  5. test -d data/files || mkdir data/files
  6. rm pod2htmd.tmp; /bin/true
  7. .PHONY: install-service
  8. install-service:
  9. mkdir -p ~/.config/systemd/user
  10. cp service-files/systemd.unit ~/.config/systemd/user/tCMS.service
  11. sed -ie 's#__REPLACEME__#$(shell pwd)#g' ~/.config/systemd/user/tCMS.service
  12. systemctl --user daemon-reload
  13. systemctl --user enable tCMS
  14. systemctl --user start tCMS
  15. loginctl enable-linger $(USER)
  16. .PHONY: test
  17. test: reset-dummy-data
  18. prove
  19. .PHONY: reset-dummy-data
  20. reset-dummy-data:
  21. cp -f data/DUMMY-dist.json data/DUMMY.json
  22. .PHONY: depend
  23. depend:
  24. apt-get install -y sqlite3 libsqlite3-dev libdbd-sqlite3-perl cpanminus starman libxml2 wget
  25. apt-get install -y libtext-xslate-perl libplack-perl libconfig-tiny-perl libdatetime-format-http-perl libjson-maybexs-perl
  26. apt-get install -y libuuid-tiny-perl libcapture-tiny-perl libconfig-simple-perl libdbi-perl libfile-slurper-perl libfile-touch-perl
  27. apt-get install -y libfile-copy-recursive-perl libxml-rss-perl libmodule-install-perl
  28. apt-get install -y libmoose-perl libmoosex-types-datetime-perl libxml-libxml-perl
  29. cpanm Mojo::File Date::Format WWW::SitemapIndex::XML WWW::Sitemap::XML HTTP::Body Pod::Html URL::Encode
  30. wget -O www/scripts/fgEmojiPicker.js https://github.com/woody180/vanilla-javascript-emoji-picker/raw/master/fgEmojiPicker.js
  31. wget -O www/scripts/full-emoji-list.json https://github.com/woody180/vanilla-javascript-emoji-picker/raw/master/full-emoji-list.json