summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-11-13 11:39:44 (EST)
committer Patrick McDermott <pj@pehjota.net>2017-11-13 11:39:44 (EST)
commit250026b221877ecd6853d2e3873470134a4d6117 (patch)
tree89d02821d74dc0a0529b95e8778153c7a93f8172
parent2099e43cbdd034c10215c684026735ad59fabe02 (diff)
downloadmarquee-250026b221877ecd6853d2e3873470134a4d6117.zip
marquee-250026b221877ecd6853d2e3873470134a4d6117.tar.gz
marquee-250026b221877ecd6853d2e3873470134a4d6117.tar.bz2
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.
-rw-r--r--data/Makefile.am11
-rw-r--r--data/resources/prism/local.mk18
2 files changed, 16 insertions, 13 deletions
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 <http://prismjs.com/download.html>.
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