commit 75296a3fefab5c8dc3abacabc2266bca30cf9756
parent 32e8ffef4fabd74e8419972367baa38e3d7edc00
Author: Emily Eisenberg <emily@khanacademy.org>
Date: Thu, 18 Jun 2015 15:22:12 -0700
Add a `dist` rule to the Makefile
Summary: Adds a `dist` rule to the Makefile which builds the `dist/`
directory with all of the built files in it.
Test plan:
- `make dist`
Auditors: alpert
Diffstat:
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
@@ -1,6 +1,9 @@
-.PHONY: build lint setup copy serve clean metrics test zip contrib
+.PHONY: build dist lint setup copy serve clean metrics test zip contrib
build: setup lint build/katex.min.js build/katex.min.css contrib zip compress
+dist: build
+ cp --recursive build/katex dist
+
# Export these variables for use in contrib Makefiles
export BUILDDIR = $(realpath build)
export BROWSERIFY = $(realpath ./node_modules/.bin/browserify)