-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
37 lines (29 loc) · 753 Bytes
/
Makefile
File metadata and controls
37 lines (29 loc) · 753 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
29
30
31
32
33
34
35
36
37
# Makefile for microservice_test/rest_trace_fuzzer
# Define build target path
BUILD_DIR := bin
BINARY := api-fuzzer
# Generate configuration code
.PHONY: generate
generate:
bash scripts/generate_arg_config_code.sh
# Build the project
.PHONY: build
build:
bash scripts/build.sh "$(BUILD_DIR)" "$(BINARY)"
# Run the project
.PHONY: run
run:
bash scripts/run.sh "$(BUILD_DIR)/$(BINARY)" "$(CONFIG_FILE)"
# Example usage:
# make run CONFIG_FILE=./config/custom_config.json
# Clean the program output
.PHONY: clean-output
clean-output:
bash scripts/clean_output.sh
# Clean the build
.PHONY: clean-build
clean-build:
bash scripts/clean_build.sh "$(BUILD_DIR)/$(BINARY)"
# Clean both output and build
.PHONY: clean
clean: clean-output clean-build