forked from dream-horizon-org/datagen
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
28 lines (21 loc) · 675 Bytes
/
Copy pathMakefile
File metadata and controls
28 lines (21 loc) · 675 Bytes
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
COMPILER_BINARY_NAME=datagenc
TRANSPILED_BINARY_NAME=datagen
.PHONY: all build-compiler run clean
all: target build-compiler transpile run
build-compiler:
go build -o $(COMPILER_BINARY_NAME) cmd/datagenc/main.go
clean:
go clean
rm -f target/$(COMPILER_BINARY_NAME)
rm -f target/$(TRANSPILED_BINARY_NAME)
target:
mkdir target
transpile: build-compiler
@echo "Running $(COMPILER_BINARY_NAME) with in=$(in) out=$(out)"
target/$(COMPILER_BINARY_NAME) --in=$(in) --out=$(out)
go build -C $(out) -o $(TRANSPILED_BINARY_NAME)
cp $(out)/$(TRANSPILED_BINARY_NAME) target/$(TRANSPILED_BINARY_NAME)
run:
./target/$(TRANSPILED_BINARY_NAME) -gen $(model):$(count)
%:
@: