mirror of
https://github.com/demostf/demo.js
synced 2026-06-04 00:54:14 +02:00
update makefile
This commit is contained in:
parent
8b1ea168e6
commit
b152231e7c
2 changed files with 14 additions and 10 deletions
19
Makefile
19
Makefile
|
|
@ -1,12 +1,15 @@
|
|||
TS_JS := $(TS_SRC:.ts=.js)
|
||||
tsc=node_modules/.bin/tsc
|
||||
|
||||
.PHONY: all tsc
|
||||
.PHONY: all
|
||||
all: build
|
||||
|
||||
all: $(TS_JS)
|
||||
node_modules: package.json
|
||||
npm install --deps
|
||||
|
||||
$(TS_JS): %.js: %.ts js.stub
|
||||
$(TSLINT) $<
|
||||
.PHONY: watch
|
||||
watch: node_modules
|
||||
node $(tsc) --watch
|
||||
|
||||
js.stub: $(TS_SRC)
|
||||
$(TSC) $^
|
||||
@touch $@
|
||||
.PHONY: build
|
||||
build: node_modules
|
||||
node $(tsc)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue