From f5197ae0a748a70ff4b5178add192acae1ffa887 Mon Sep 17 00:00:00 2001 From: Emily Eisenberg Date: Tue, 11 Mar 2014 16:32:08 -0600 Subject: [PATCH] Make the Makefile non-mac friendly Summary: Add checks in the makefile to not run mac-only things when not on a mac. (I've only tested on linux, I haven't ensured that this runs mac-only things on a mac) Test Plan: - Run `make` - Have it not break Reviewers: alpert Reviewed By: alpert Differential Revision: http://phabricator.khanacademy.org/D7260 --- Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index c792c5b2f..94d192b7c 100644 --- a/Makefile +++ b/Makefile @@ -1,10 +1,17 @@ +UNAME=$(shell uname) + .PHONY: build setup copy serve clean -build: setup build/katex.js build/katex.less.css pdiff +build: setup build/katex.js build/katex.less.css +ifeq ($(UNAME),Darwin) +build: pdiff +endif setup: npm install +ifeq ($(UNAME),Darwin) brew install webkit2png brew install graphicsmagick +endif compress: build/katex.min.js @printf "Minified, gzipped size: "