2022-05-05 17:51:24 -07:00
|
|
|
SOURCE_FILES:=$(shell find . -name "*.ts" -not -path "./node_modules/*")
|
|
|
|
|
|
|
|
.PHONY: all
|
|
|
|
all: build
|
|
|
|
|
|
|
|
package-lock.json: package.json
|
|
|
|
npm install
|
|
|
|
|
|
|
|
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
|
|
|
|
./run_parse_tests
|
|
|
|
|
2022-05-05 17:51:24 -07:00
|
|
|
clean:
|
|
|
|
rm -rf build node_modules
|