mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-19 14:13:34 +01:00
make makefile work for darwin(mac)
This commit is contained in:
parent
77403942ee
commit
6f743c6ee2
1 changed files with 5 additions and 1 deletions
4
Makefile
4
Makefile
|
@ -4,6 +4,7 @@ outdoc_files = $(addprefix out/,$(doc_sources:.md=.html))
|
||||||
docassets = $(addprefix out/,$(wildcard doc/assets/*))
|
docassets = $(addprefix out/,$(wildcard doc/assets/*))
|
||||||
|
|
||||||
VERSION = $(shell node -e "console.log( require('./src/package.json').version )")
|
VERSION = $(shell node -e "console.log( require('./src/package.json').version )")
|
||||||
|
UNAME := $(shell uname -s)
|
||||||
|
|
||||||
docs: $(outdoc_files) $(docassets)
|
docs: $(outdoc_files) $(docassets)
|
||||||
|
|
||||||
|
@ -14,6 +15,9 @@ out/doc/assets/%: doc/assets/%
|
||||||
out/doc/%.html: doc/%.md
|
out/doc/%.html: doc/%.md
|
||||||
mkdir -p $(@D)
|
mkdir -p $(@D)
|
||||||
node tools/doc/generate.js --format=html --template=doc/template.html $< > $@
|
node tools/doc/generate.js --format=html --template=doc/template.html $< > $@
|
||||||
|
ifeq ($(UNAME),Darwin)
|
||||||
|
sed -i '' 's/__VERSION__/${VERSION}/' $@
|
||||||
|
else
|
||||||
sed -i 's/__VERSION__/${VERSION}/' $@
|
sed -i 's/__VERSION__/${VERSION}/' $@
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
|
|
Loading…
Reference in a new issue