summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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