forked from ProseMirror/website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
26 lines (19 loc) · 1 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
PAGES:=$(wildcard pages/*.html) $(wildcard pages/**/*.html) $(wildcard pages/*.md) $(wildcard pages/**/*.md)
all: $(subst .md,.html,$(PAGES:pages/%=public/%)) \
public/demo/bundle_basic.js \
public/demo/bundle_markdown.js \
public/demo/bundle_dino.js \
public/demo/bundle_lint.js \
public/demo/bundle_track.js \
public/demo/bundle_collab.js
BUILD:=browserify
public/ref.html: pages/ref.html node_modules/prosemirror-*/src/* templates/* src/build/*.js
node src/build/build.js --ref $<
public/changelog.html: pages/changelog.html node_modules/prosemirror/CHANGELOG.md
node src/build/build.js $<
public/%.html: pages/%.* templates/* src/build/*.js
node src/build/build.js $<
public/demo/bundle_collab.js: src/demo/collab/client/*.js node_modules/prosemirror/dist/**/*.js
node_modules/.bin/$(BUILD) --outfile $@ -t babelify src/demo/collab/client/collab.js
public/demo/bundle_%.js: src/demo/%.js node_modules/prosemirror/dist/**/*.js
node_modules/.bin/$(BUILD) --outfile $@ -t babelify $<