1
0
Fork 0
mirror of https://github.com/demostf/demo.js synced 2026-06-04 00:54:14 +02:00

update makefile

This commit is contained in:
Robin Appelman 2016-12-22 00:19:48 +01:00
commit b152231e7c
2 changed files with 14 additions and 10 deletions

View file

@ -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)