Update Makefile
This commit is contained in:
parent
8562de4bbf
commit
518fdbc5d8
1 changed files with 4 additions and 5 deletions
9
Makefile
9
Makefile
|
@ -1,17 +1,16 @@
|
||||||
|
|
||||||
all: src/ast.js
|
all: src/ast.ts
|
||||||
bolt check test.bolt --no-std
|
bolt check test.bolt --no-std
|
||||||
|
|
||||||
src/ast.js: src/ast-spec.txt
|
src/ast.ts: src/ast-spec.ts
|
||||||
@echo "Generating AST definitions ..."
|
@echo "Generating AST definitions ..."
|
||||||
@mkdir -p lib/
|
@mkdir -p lib/
|
||||||
@treegen --js-file=src/ast.js --dts-file src/ast.d.ts src/ast-spec.txt
|
@tsastgen src/ast-spec.ts:src/ast.ts
|
||||||
|
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -rf src/ast.js
|
rm -rf src/ast.ts
|
||||||
rm -rf src/ast.d.ts
|
|
||||||
|
|
||||||
.PHONY: distclean
|
.PHONY: distclean
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue