summaryrefslogtreecommitdiffstats
path: root/data
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-10-31 04:06:24 (EDT)
committer Patrick McDermott <pj@pehjota.net>2017-10-31 04:06:24 (EDT)
commit2e9459cf03248aa338c148cc06aa9f661c8be5ac (patch)
tree2bb699e9049645f318bbf15032a3d55795e959bc /data
parent2d6f7c958eb6b1ce63f9731a42bc2ab92356ba5c (diff)
downloadmarquee-2e9459cf03248aa338c148cc06aa9f661c8be5ac.zip
marquee-2e9459cf03248aa338c148cc06aa9f661c8be5ac.tar.gz
marquee-2e9459cf03248aa338c148cc06aa9f661c8be5ac.tar.bz2
data/Makefile.am: Build prism.css and prism.js
Diffstat (limited to 'data')
-rw-r--r--data/Makefile.am12
-rw-r--r--data/resources/prism/local.mk14
2 files changed, 25 insertions, 1 deletions
diff --git a/data/Makefile.am b/data/Makefile.am
index 0f20308..5af075f 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -20,10 +20,20 @@
SUFFIXES = .htmlin .html
nobase_dist_pkgdata_DATA = \
- resources/gpl-3.0-standalone.html
+ resources/gpl-3.0-standalone.html \
+ resources/prism/prism.css \
+ resources/prism/prism.js
CLEANFILES = $(nobase_dist_pkgdata_DATA)
.htmlin.html:
@out=$@; $(MKDIR_P) $${out%/*}
$(AM_V_GEN)$(LN_S) $(abs_builddir)/$< $(abs_builddir)/$@
+
+resources/prism/prism.css: $(prismcss_sources)
+ $(AM_V_GEN)cat $(prismcss_sources) >$@
+
+resources/prism/prism.js: $(prismjs_sources)
+ $(AM_V_GEN)cat $(prismjs_sources) >$@
+
+include $(srcdir)/resources/prism/local.mk
diff --git a/data/resources/prism/local.mk b/data/resources/prism/local.mk
new file mode 100644
index 0000000..3da7803
--- /dev/null
+++ b/data/resources/prism/local.mk
@@ -0,0 +1,14 @@
+# Order these in the way they are ordered on <http://prismjs.com/download.html>.
+
+prismcss_sources = \
+ %reldir%/themes/prism.css \
+ %reldir%/plugins/line-numbers/prism-line-numbers.css
+
+prismjs_sources = \
+ %reldir%/components/prism-core.js \
+ %reldir%/components/prism-markup.js \
+ %reldir%/components/prism-css.js \
+ %reldir%/components/prism-clike.js \
+ %reldir%/components/prism-javascript.js \
+ %reldir%/plugins/line-numbers/prism-line-numbers.js \
+ %reldir%/plugins/data-uri-highlight/prism-data-uri-highlight.js