forked from vieirin/goal-controller
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
67 lines (51 loc) · 1.56 KB
/
Makefile
File metadata and controls
67 lines (51 loc) · 1.56 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
PATH := /usr/local/bin/:node_modules/.bin/:/bin:/opt/homebrew/bin/:$(PATH)
SHELL := /bin/bash
.PHONY: all install grammar dev build test clean storm experiment run-experiment
all: install grammar build
install:
pnpm install
grammar:
cd packages/lib && make grammar
dev:
pnpm run dev
build:
pnpm run build
build-lib:
pnpm run build:lib
build-ui:
pnpm run build:ui
test:
pnpm run test
clean:
pnpm run clean
# CLI commands (for backwards compatibility)
cli: grammar build-lib
cd packages/lib && node --experimental-strip-types src/cli.ts
run: grammar build-lib
@if [ -z "$(FILE)" ]; then \
echo "Error: FILE variable is required. Usage: make run FILE=examples/model.txt"; \
exit 1; \
fi
@echo "Processing $(FILE)..."
node packages/lib/out/index.js "$(FILE)"
generate: grammar build-lib
@if [ -z "$(FILE)" ]; then \
echo "Error: FILE variable is required. Usage: make generate FILE=examples/model.txt"; \
exit 1; \
fi
@echo "Generating model from $(FILE)..."
node packages/lib/out/index.js "$(FILE)"
@echo "✅ Model generated successfully!"
# Experiment targets (updated paths)
storm:
docker-compose -f experiments/docker-compose.storm.yml up -d
docker exec -it storm-container bash
experiment:
docker-compose -f experiments/docker-compose.storm.yml build experiment
docker-compose -f experiments/docker-compose.storm.yml up -d experiment
docker exec -it experiment-container bash
run-experiment:
@echo "Running experiment..."
@cd experiments && ./generate.sh
@cd experiments && ./check_properties.sh --storm
@cd experiments && ./extract_metrics.sh