-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
60 lines (48 loc) · 1.38 KB
/
Makefile
File metadata and controls
60 lines (48 loc) · 1.38 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
.PHONY: clean build package install help
# Maven command
MVN := mvn
# Project info
PROJECT_NAME := AuthAnalyzer
VERSION := 1.1.14
JAR_NAME := $(PROJECT_NAME)-$(VERSION)-jar-with-dependencies.jar
TARGET_DIR := target
JAR_PATH := $(TARGET_DIR)/$(JAR_NAME)
help:
@echo "Available targets:"
@echo " clean - Remove build artifacts"
@echo " compile - Compile the project"
@echo " package - Build JAR with dependencies"
@echo " build - Clean and build (default)"
@echo " install - Build and show JAR location"
@echo " test - Run tests"
clean:
@echo "Cleaning build artifacts..."
$(MVN) clean
compile:
@echo "Compiling project..."
$(MVN) compile
package:
@echo "Packaging JAR with dependencies..."
$(MVN) package
build: clean package
@echo "Build complete!"
@echo "JAR location: $(JAR_PATH)"
install: build
@echo ""
@echo "=========================================="
@echo "Extension built successfully!"
@echo "=========================================="
@echo "JAR file: $(JAR_PATH)"
@echo ""
@echo "To install in Burp Suite:"
@echo " 1. Open Burp Suite"
@echo " 2. Go to Extensions tab"
@echo " 3. Click 'Add' button"
@echo " 4. Select 'Java' extension type"
@echo " 5. Browse and select: $(abspath $(JAR_PATH))"
@echo "=========================================="
test:
@echo "Running tests..."
$(MVN) test
# Default target
.DEFAULT_GOAL := build