2022-10-21 07:32:16 -07:00
|
|
|
SOURCE_FILES:=$(shell find . -type d -name node_modules -prune -o -name "*.ts")
|
2022-05-05 17:51:24 -07:00
|
|
|
|
|
|
|
.PHONY: all
|
|
|
|
all: build
|
|
|
|
|
|
|
|
node_modules: package-lock.json
|
|
|
|
@touch -m node_modules
|
|
|
|
npm ci
|
|
|
|
|
|
|
|
.PHONY: dependencies
|
|
|
|
dependencies: node_modules
|
|
|
|
|
|
|
|
build: node_modules $(SOURCE_FILES)
|
|
|
|
@mkdir -p build
|
|
|
|
npm run build
|
2022-06-30 04:52:39 -07:00
|
|
|
@touch -m build
|
2022-05-05 17:51:24 -07:00
|
|
|
|
|
|
|
install: build
|
|
|
|
@echo Linking binaries
|
|
|
|
chmod +x build/main.js
|
|
|
|
npm link
|
|
|
|
|
2022-06-29 12:12:07 -07:00
|
|
|
.PHONY: test
|
|
|
|
test: build
|
2022-08-28 05:34:42 -07:00
|
|
|
# This first invocation will set up the initial config, so that the warning
|
|
|
|
# doesn't show up in the tests
|
|
|
|
node build/main.js --version > /dev/null
|
2022-06-29 12:12:07 -07:00
|
|
|
./run_parse_tests
|
|
|
|
|
2022-05-05 17:51:24 -07:00
|
|
|
clean:
|
|
|
|
rm -rf build node_modules
|