From 2e9459cf03248aa338c148cc06aa9f661c8be5ac Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Tue, 31 Oct 2017 04:06:24 -0400 Subject: data/Makefile.am: Build prism.css and prism.js --- (limited to 'data') 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 . + +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 -- cgit v0.9.1