summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn McLear <john@mclear.co.uk>2013-01-27 16:45:01 +0000
committerJohn McLear <john@mclear.co.uk>2013-01-27 16:45:01 +0000
commit6f743c6ee21dc96a286d2f52c3902bce11f7e19d (patch)
treee94e0aadd35b36f5f7b1b79f150af9f102825144
parent77403942eebdf9f6f103a858ceec72899d68574b (diff)
downloadetherpad-lite-6f743c6ee21dc96a286d2f52c3902bce11f7e19d.zip
make makefile work for darwin(mac)
-rw-r--r--Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index c63bb0bf..09dbf0f3 100644
--- a/Makefile
+++ b/Makefile
@@ -4,6 +4,7 @@ outdoc_files = $(addprefix out/,$(doc_sources:.md=.html))
docassets = $(addprefix out/,$(wildcard doc/assets/*))
VERSION = $(shell node -e "console.log( require('./src/package.json').version )")
+UNAME := $(shell uname -s)
docs: $(outdoc_files) $(docassets)
@@ -14,7 +15,10 @@ out/doc/assets/%: doc/assets/%
out/doc/%.html: doc/%.md
mkdir -p $(@D)
node tools/doc/generate.js --format=html --template=doc/template.html $< > $@
- sed -i 's/__VERSION__/${VERSION}/' $@
+ ifeq ($(UNAME),Darwin)
+ sed -i '' 's/__VERSION__/${VERSION}/' $@
+ else
+ sed -i 's/__VERSION__/${VERSION}/' $@
clean:
rm -rf out/