-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
40 lines (30 loc) · 889 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
PREFIX ?= /usr
all:
build: clean
bash build.sh
clean:
-rm -rf build/
install:
mkdir -p $(DESTDIR)$(PREFIX)/share/claws-mail/themes
cp -R \
Papirus \
ePapirus \
Papirus-Dark \
Papirus-Light \
$(DESTDIR)$(PREFIX)/share/claws-mail/themes
uninstall:
-rm -rf $(DESTDIR)$(PREFIX)/share/claws-mail/themes/Papirus
-rm -rf $(DESTDIR)$(PREFIX)/share/claws-mail/themes/ePapirus
-rm -rf $(DESTDIR)$(PREFIX)/share/claws-mail/themes/Papirus-Dark
-rm -rf $(DESTDIR)$(PREFIX)/share/claws-mail/themes/Papirus-Light
_get_version:
$(eval VERSION := $(shell git show -s --format=%cd --date=format:%Y%m%d HEAD))
@echo $(VERSION)
release: _get_version
git tag -f $(VERSION)
git push origin --tags
git push origin
undo_release: _get_version
-git tag -d $(VERSION)
-git push --delete origin $(VERSION)
.PHONY: all build clean install uninstall _get_version release undo_release