|
|
@@ -1,9 +1,11 @@
|
|
|
+# I Would highly suggest removing this. And either including it in the repo,
|
|
|
+# Or, having the app bootstrap it.
|
|
|
.PHONY: install
|
|
|
install:
|
|
|
test -d $(HOME)/.tcms || mkdir $(HOME)/.tcms
|
|
|
test -d www/themes || mkdir www/themes
|
|
|
test -d data/files || mkdir data/files
|
|
|
- rm pod2htmd.tmp; /bin/true
|
|
|
+ $(RM) pod2htmd.tmp;
|
|
|
|
|
|
.PHONY: install-service
|
|
|
install-service:
|
|
|
@@ -15,21 +17,23 @@ install-service:
|
|
|
systemctl --user start tCMS
|
|
|
loginctl enable-linger $(USER)
|
|
|
|
|
|
-.PHONY: test
|
|
|
-test: reset-dummy-data
|
|
|
- prove
|
|
|
-
|
|
|
.PHONY: reset-dummy-data
|
|
|
reset-dummy-data:
|
|
|
cp -f data/DUMMY-dist.json data/DUMMY.json
|
|
|
|
|
|
-.PHONY: depend
|
|
|
-depend:
|
|
|
- apt-get install -y sqlite3 libsqlite3-dev libdbd-sqlite3-perl cpanminus starman libxml2 wget
|
|
|
- apt-get install -y libtext-xslate-perl libplack-perl libconfig-tiny-perl libdatetime-format-http-perl libjson-maybexs-perl
|
|
|
- apt-get install -y libuuid-tiny-perl libcapture-tiny-perl libconfig-simple-perl libdbi-perl libfile-slurper-perl libfile-touch-perl
|
|
|
- apt-get install -y libfile-copy-recursive-perl libxml-rss-perl libmodule-install-perl
|
|
|
- apt-get install -y libmoose-perl libmoosex-types-datetime-perl libxml-libxml-perl
|
|
|
- cpanm -n Mojo::File Date::Format WWW::SitemapIndex::XML WWW::Sitemap::XML HTTP::Body Pod::Html URL::Encode
|
|
|
- wget -O www/scripts/fgEmojiPicker.js https://github.com/woody180/vanilla-javascript-emoji-picker/raw/master/fgEmojiPicker.js
|
|
|
- wget -O www/scripts/full-emoji-list.json https://github.com/woody180/vanilla-javascript-emoji-picker/raw/master/full-emoji-list.json
|
|
|
+.PHONY: prereq-debian
|
|
|
+prereq-debian: prereq-frontend prereq-perl
|
|
|
+ apt-get install -y sqlite3 libsqlite3-dev libdbd-sqlite3-perl cpanminus starman libxml2 wget \
|
|
|
+ libtext-xslate-perl libplack-perl libconfig-tiny-perl libdatetime-format-http-perl libjson-maybexs-perl \
|
|
|
+ libuuid-tiny-perl libcapture-tiny-perl libconfig-simple-perl libdbi-perl libfile-slurper-perl libfile-touch-perl \
|
|
|
+ libfile-copy-recursive-perl libxml-rss-perl libmodule-install-perl \
|
|
|
+ libmoose-perl libmoosex-types-datetime-perl libxml-libxml-perl
|
|
|
+
|
|
|
+.PHONY: prereq-perl
|
|
|
+ cpanm -n --installdeps .
|
|
|
+
|
|
|
+.PHONY: prereq-frontend
|
|
|
+prereq-frontend:
|
|
|
+ mkdir -p www/scripts; cd www/scripts && curl --remote-name-all \
|
|
|
+ "https://github.com/woody180/vanilla-javascript-emoji-picker/raw/master/fgEmojiPicker.js" \
|
|
|
+ "https://github.com/woody180/vanilla-javascript-emoji-picker/raw/master/full-emoji-list.json"
|