-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
88 lines (77 loc) · 2.51 KB
/
Makefile
File metadata and controls
88 lines (77 loc) · 2.51 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
# CSSGnomme - GNOME Shell Extension Makefile
# For manual installation from source
EXTENSION_UUID = cssgnomme@dr.drummie
INSTALL_DIR = $(HOME)/.local/share/gnome-shell/extensions/$(EXTENSION_UUID)
# Files to include in extension package
SOURCE_FILES = \
extension.js \
prefs.js \
overlayThemeManager.js \
colorPalette.js \
ZorinStyler.js \
cssTemplates.js \
themeUtils.js \
loggingUtils.js \
constants.js \
signalHandler.js \
metadata.json
SCHEMA_DIR = schemas
LOCALE_DIR = locale
.PHONY: all build install clean package help
all: build
help:
@echo "CSSGnomme Extension - Available targets:"
@echo ""
@echo " make build - Compile GSettings schema"
@echo " make install - Install extension to user directory"
@echo " make clean - Remove compiled schema"
@echo " make package - Create ZIP file for manual installation"
@echo " make uninstall - Remove extension from user directory"
@echo ""
@echo "After installation, restart GNOME Shell:"
@echo " X11: Press Alt+F2, type 'r', press Enter"
@echo " Wayland: Log out and log back in"
# Compile GSettings schema
build:
@echo "Compiling GSettings schema..."
glib-compile-schemas $(SCHEMA_DIR)/
# Install extension to user directory
install: build
@echo "Installing extension to $(INSTALL_DIR)..."
@mkdir -p $(INSTALL_DIR)
@cp $(SOURCE_FILES) $(INSTALL_DIR)/
@cp -r $(SCHEMA_DIR) $(INSTALL_DIR)/
@cp -r $(LOCALE_DIR) $(INSTALL_DIR)/
@echo ""
@echo "✅ Extension installed successfully!"
@echo ""
@echo "Next steps:"
@echo " 1. Restart GNOME Shell (Alt+F2 → r on X11, or log out/in on Wayland)"
@echo " 2. Enable extension: gnome-extensions enable $(EXTENSION_UUID)"
@echo " 3. Configure: gnome-extensions prefs $(EXTENSION_UUID)"
# Remove extension from user directory
uninstall:
@echo "Uninstalling extension..."
@rm -rf $(INSTALL_DIR)
@echo "✅ Extension uninstalled."
# Create ZIP package for manual installation
package: build
@echo "Creating ZIP package..."
@zip -r $(EXTENSION_UUID).zip \
$(SOURCE_FILES) \
$(SCHEMA_DIR) \
$(LOCALE_DIR) \
-x "*.po" "*.pot" "*.md"
@echo ""
@echo "✅ Package created: $(EXTENSION_UUID).zip"
@echo ""
@echo "To install manually:"
@echo " 1. Extract to: ~/.local/share/gnome-shell/extensions/$(EXTENSION_UUID)/"
@echo " 2. Restart GNOME Shell"
@echo " 3. Enable extension: gnome-extensions enable $(EXTENSION_UUID)"
# Clean compiled files
clean:
@echo "Cleaning compiled files..."
@rm -f $(SCHEMA_DIR)/gschemas.compiled
@rm -f $(EXTENSION_UUID).zip
@echo "✅ Clean complete."