-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
62 lines (55 loc) · 2.21 KB
/
Makefile
File metadata and controls
62 lines (55 loc) · 2.21 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
# ============================================================================
# Air-Gap Multi-Package Build System
# ============================================================================
# Include modular components
include build/variables.mk
include build/go.mk
include build/java.mk
include build/package.mk
include build/test.mk
# ============================================================================
# Main Targets
# ============================================================================
.PHONY: all clean help
all: build-go-all build-java
@echo "✅ All components built successfully"
help:
@echo "Air-Gap Build System"
@echo "===================="
@echo ""
@echo "Build Targets:"
@echo " make all - Build everything (Go all archs + Java)"
@echo " make build-go - Build Go binaries (Linux AMD64)"
@echo " make build-go-all - Build Go binaries (all architectures)"
@echo " make build-go-linux-amd64 - Build Go binaries (Linux AMD64)"
@echo " make build-go-linux-arm64 - Build Go binaries (Linux ARM64)"
@echo " make build-go-mac-arm64 - Build Go binaries (macOS ARM64)"
@echo " make build-java - Build Java deduplication JAR"
@echo ""
@echo "Package Targets:"
@echo " make package-all - Build all packages (all formats)"
@echo " make package-upstream - Build upstream packages (rpm+deb+apk)"
@echo " make package-downstream - Build downstream packages"
@echo " make package-dedup - Build dedup packages"
@echo ""
@echo "Individual Package Format:"
@echo " make package-upstream-rpm - Build upstream RPM only"
@echo " make package-upstream-deb - Build upstream DEB only"
@echo " (Similar for downstream and dedup)"
@echo ""
@echo "Testing:"
@echo " make test - Run Go tests"
@echo ""
@echo "Cleanup:"
@echo " make clean - Remove all build artifacts"
clean:
@echo "Cleaning build artifacts..."
rm -rf $(TARGET_DIR)
rm -f .build-number-incremented
cd java-streams && mvn clean || true
@echo "✅ Clean complete"
.PHONY: clean-packages
clean-packages:
@echo "Cleaning package artifacts..."
rm -rf $(DIST_DIR)
@echo "✅ Package artifacts cleaned"