-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
35 lines (27 loc) · 801 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
NAME=simple-break-timer
UUID=$(NAME)@gsurkov.github.io
PREFIX?=$(HOME)/.local
INSTALL_LOCATION=/share/gnome-shell/extensions/$(UUID)
INSTALL_PATH=$(DESTDIR)$(PREFIX)$(INSTALL_LOCATION)
FILES=$(wildcard schemas/*.compiled) \
$(wildcard icons/*.svg) \
$(wildcard *.js) \
metadata.json \
stylesheet.css
zip: schemas
@echo Making zip...
zip -r $(NAME).zip $(FILES)
install: schemas
@echo Installing to $(INSTALL_PATH)
mkdir -p $(INSTALL_PATH)
cp --parents $(FILES) $(INSTALL_PATH)
uninstall:
@echo Uninstalling from $(INSTALL_PATH)
rm -rf $(INSTALL_PATH)
schemas:
@echo Compiling schemas...
glib-compile-schemas ./schemas
clean:
rm -f $(NAME).zip
rm schemas/*.compiled
.PHONY: schemas zip install uninstall clean