From 3b69354fd6e8750464460a3519b0565c34d1cc70 Mon Sep 17 00:00:00 2001 From: Emily Eisenberg Date: Fri, 26 Jul 2013 14:10:35 -0700 Subject: [PATCH] Improve the makefile Summary: Make the makefile copy files into the correct places in all three repos. (note, the khan-exercises location might change since we don't want to have two copies of things, but it's where it is in my setup right now) Auditors: alpert --- Makefile | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index ced55fb5e..f74f0706f 100644 --- a/Makefile +++ b/Makefile @@ -11,11 +11,21 @@ build/katex.js: katex.js $(wildcard *.js) build/katex.min.js: build/katex.js uglifyjs --mangle < $< > $@ +copy: copy-webapp copy-perseus copy-khan-exercises -copy: build +copy-webapp: build + cp build/katex.js ../webapp/javascript/katex-package/ + cp static/katex.css static/fonts/fonts.css \ + ../webapp/stylesheets/katex-package + cp static/fonts/*.ttf static/fonts/*.eot static/fonts/*.woff \ + ../webapp/fonts/ + +copy-perseus: build + cp -R build/katex.js static/katex.css static/fonts ../perseus/lib/katex/ + +copy-khan-exercises: build cp build/katex.js ../exercises/utils/katex.js - cp static/katex.css ../exercises/css/ - cp -R static/fonts ../exercises/css/ + cp -R static/katex.css static/fonts ../exercises/css/ serve: node server.js