-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
46 lines (41 loc) · 1.15 KB
/
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
##
# ColorTint - Gnome Shell Extension
#
# @file
# @version 0.1
.DEFAULT_GOAL := build
WORKING_DIR = tmp/
OUTPUT_DIR = bin/
OUTPUT_FNAME = [email protected]
INSTALL_DIR = ~/.local/share/gnome-shell/extensions/colortint\@matt.serverus.co.uk
compile:
glib-compile-schemas src/schemas/
.PHONY:compile
build: compile
# Delete the output dir
rm -rf $(OUTPUT_DIR)
# Set up blank directories
mkdir $(OUTPUT_DIR)
mkdir $(WORKING_DIR)
# Construct the package in the working directory
cp -r src/* $(WORKING_DIR)
cp CHANGELOG.md $(WORKING_DIR)
cp LICENSE $(WORKING_DIR)
cp README.md $(WORKING_DIR)
# Uncomment below line once Gnome 44 is oldest supported version
# rm $(WORKING_DIR)schemas/*.compiled
# zip the package and place in the output directory
cd ./$(WORKING_DIR); zip -r ../$(OUTPUT_DIR)$(OUTPUT_FNAME) .
# delete the working directory
rm -rf $(WORKING_DIR)
.PHONY: build
install: build
rm -rf $(INSTALL_DIR)
unzip $(OUTPUT_DIR)$(OUTPUT_FNAME) -d $(INSTALL_DIR)
# Uncomment below line once Gnome 44 is oldest supported version
# glib-compile-schemas $(INSTALL_DIR)/schemas/
.PHONY: install
test: install
./nested-session.sh
.PHONY:test
# end