-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
55 lines (48 loc) · 1.13 KB
/
Makefile
File metadata and controls
55 lines (48 loc) · 1.13 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
# YGGMollo Makefile
# Variables
EXTENSION_NAME = yggmollo
VERSION = 1.0.0
BUILD_DIR = build
ZIP_NAME = $(EXTENSION_NAME)-v$(VERSION).zip
# Files to include in the extension
EXTENSION_FILES = manifest.json \
content.js \
background.js \
options.html \
options.js \
styles.css \
icons/ \
assets/
# Default target
.PHONY: all
all: build
# Build the extension ZIP file
.PHONY: build
build: clean
@echo "Building $(ZIP_NAME)..."
@mkdir -p $(BUILD_DIR)
@zip -r $(BUILD_DIR)/$(ZIP_NAME) $(EXTENSION_FILES) \
-x "*.DS_Store" \
-x "icons/icon.png"
@echo "✓ Extension built: $(BUILD_DIR)/$(ZIP_NAME)"
@ls -lh $(BUILD_DIR)/$(ZIP_NAME)
# Clean build artifacts
.PHONY: clean
clean:
@echo "Cleaning build directory..."
@rm -rf $(BUILD_DIR)
@echo "✓ Clean complete"
# Install dependencies (if any)
.PHONY: install
install:
@echo "No dependencies to install"
# Help
.PHONY: help
help:
@echo "YGGMollo - Available commands:"
@echo ""
@echo " make build - Build the extension ZIP file"
@echo " make clean - Remove build artifacts"
@echo " make help - Show this help message"
@echo ""
@echo "Output: $(BUILD_DIR)/$(ZIP_NAME)"