-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
46 lines (37 loc) · 925 Bytes
/
Makefile
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
# Makefile for Terminus
# Default configuration
TARGET := terminus
BUILD_DIR := ./target/release
OUTPUT_DIR := ./terminus_results
CARGO := cargo
# Default build target
.PHONY: all
all: build
# Build the release version
.PHONY: build
build:
$(CARGO) build --release
# Run the program with default arguments
.PHONY: run
run:
$(BUILD_DIR)/$(TARGET) -u http://example.com -X GET -o $(OUTPUT_DIR)
# Run the program with specific arguments (example with a URL)
.PHONY: run-url
run-url:
$(BUILD_DIR)/$(TARGET) -u http://example.com -X ALL
# Run the program with specific arguments (example with a file)
.PHONY: run-file
run-file:
$(BUILD_DIR)/$(TARGET) -f urls.txt -X ALL
# Clean the build artifacts
.PHONY: clean
clean:
$(CARGO) clean
# Install the binary globally
.PHONY: install
install:
$(CARGO) install --path .
# Uninstall the globally installed binary
.PHONY: uninstall
uninstall:
$(CARGO) uninstall $(TARGET)