From 250026b221877ecd6853d2e3873470134a4d6117 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Mon, 13 Nov 2017 11:39:44 -0500 Subject: data/Makefile.am, data/resources/prism/local.mk: Copy/link Prism sources to build directory And use copied/linked files to build prism.css and prism.js. --- diff --git a/data/Makefile.am b/data/Makefile.am index bc257d7..f3c5cd7 100644 --- a/data/Makefile.am +++ b/data/Makefile.am @@ -36,6 +36,9 @@ EXTRA_DIST = \ CLEANFILES = $(nobase_nodist_pkgdata_DATA) +prismcss_objects = $(prismcss_sources:.cssin=.css) +prismjs_objects = $(prismcss_sources:.cssin=.css) + .htmlin.html: @out=$@; $(MKDIR_P) $${out%/*} $(AM_V_GEN)$(LN_S) $(abs_builddir)/$< $(abs_builddir)/$@ @@ -48,12 +51,12 @@ CLEANFILES = $(nobase_nodist_pkgdata_DATA) @out=$@; $(MKDIR_P) $${out%/*} $(AM_V_GEN)$(LN_S) $(abs_builddir)/$< $(abs_builddir)/$@ -resources/prism/prism.css: $(prismcss_sources) +resources/prism/prism.css: $(prismcss_objects) @out=$@; $(MKDIR_P) $${out%/*} - $(AM_V_GEN)cat $(prismcss_sources) >$@ + $(AM_V_GEN)cat $(prismcss_objects) >$@ -resources/prism/prism.js: $(prismjs_sources) +resources/prism/prism.js: $(prismjs_objects) @out=$@; $(MKDIR_P) $${out%/*} - $(AM_V_GEN)cat $(prismjs_sources) >$@ + $(AM_V_GEN)cat $(prismjs_objects) >$@ include $(srcdir)/resources/prism/local.mk diff --git a/data/resources/prism/local.mk b/data/resources/prism/local.mk index 3da7803..4740718 100644 --- a/data/resources/prism/local.mk +++ b/data/resources/prism/local.mk @@ -1,14 +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 + %reldir%/themes/prism.cssin \ + %reldir%/plugins/line-numbers/prism-line-numbers.cssin 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 + %reldir%/components/prism-core.jsin \ + %reldir%/components/prism-markup.jsin \ + %reldir%/components/prism-css.jsin \ + %reldir%/components/prism-clike.jsin \ + %reldir%/components/prism-javascript.jsin \ + %reldir%/plugins/line-numbers/prism-line-numbers.jsin \ + %reldir%/plugins/data-uri-highlight/prism-data-uri-highlight.jsin -- cgit v0.9.1