-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
49 lines (37 loc) · 951 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
47
48
49
# Makefile for atlas-config project
# Variables
TS_DIR := typescript
GO_DIR := golang
# Default target
all: build test
# Build all projects
build: build-ts build-go
# Build TypeScript project
build-ts:
@echo "Building TypeScript project..."
cd $(TS_DIR) && pnpm install && pnpm run build
# Build Go project
build-go:
@echo "Building Go project..."
cd $(GO_DIR) && go build ./...
# Test all projects
test: test-ts test-go
# Test TypeScript project
test-ts:
@echo "Testing TypeScript project..."
cd $(TS_DIR) && npm test
# Test Go project
test-go:
@echo "Testing Go project..."
cd $(GO_DIR) && go test -v ./...
# Clean all projects
clean: clean-ts clean-go
# Clean TypeScript project
clean-ts:
@echo "Cleaning TypeScript project..."
cd $(TS_DIR) && npm run clean
# Clean Go project
clean-go:
@echo "Cleaning Go project..."
cd $(GO_DIR) && go clean
.PHONY: all build build-ts build-go test test-ts test-go clean clean-ts clean-go