Skip to content

Commit

Permalink
parallel makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
dmonad committed Dec 12, 2023
1 parent 5c1de68 commit 51b9652
Showing 1 changed file with 61 additions and 0 deletions.
61 changes: 61 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@


all :
make -j demos

static-content : all
rm -rf node_modules */node_modules

demos: monaco cm cm6 pm pm-versions quill

node_modules :
npm ci

# build demo-server
demo-server :
cd demo-server
npm ci
.PHONY demo-server

# build codemirror 5 demo
cm : node_modules
cd codemirror
npm ci
npm run dist

# build codemirror 6 demo
cm6 : node_modules
cd codemirror.next
npm ci
npm run dist

# build prosemirror demo
pm : node_modules
cd prosemirror
npm ci
npm run dist

# build prosemirror-versions demo
pm-versions : node_modules
cd prosemirror-versions
npm ci
npm run dist

# build quill demo
quill : node_modules
cd quill
npm ci
npm run dist

# build monaco demo
monaco : node_modules
cd monaco
npm ci
npm run dist
.PHONY : monaco

# remove all generated files
clean :
rm -rf */dist */node_modules node_modules

.ONESHELL :

0 comments on commit 51b9652

Please sign in to comment.