Skip to content

Commit ce86346

Browse files
committed
Update Makefile (see commit description)
* Added `make dist` * Deleted `make push` * Now can change the list of themes that will be installed: Install only Kvantum: make THEMES="Kvantum" install Install all except konversation and yakuake: make IGNORE="konversation yakuake" install
1 parent 10bcb75 commit ce86346

File tree

1 file changed

+10
-13
lines changed

1 file changed

+10
-13
lines changed

Makefile

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,15 @@
11
PREFIX ?= /usr
2+
IGNORE ?=
3+
THEMES ?= aurorae color-schemes konsole konversation Kvantum plasma wallpapers yakuake
4+
5+
# excludes IGNORE from THEMES list
6+
THEMES := $(filter-out $(IGNORE), $(THEMES))
27

38
all:
49

510
install:
611
mkdir -p $(DESTDIR)$(PREFIX)/share
7-
cp -R \
8-
aurorae \
9-
color-schemes \
10-
konsole \
11-
konversation \
12-
Kvantum \
13-
plasma \
14-
wallpapers \
15-
yakuake \
16-
$(DESTDIR)$(PREFIX)/share
12+
cp -R $(THEMES) $(DESTDIR)$(PREFIX)/share
1713

1814
uninstall:
1915
-rm -rf $(DESTDIR)$(PREFIX)/share/aurorae/themes/Arc
@@ -39,16 +35,17 @@ _get_version:
3935
$(eval VERSION := $(shell git show -s --format=%cd --date=format:%Y%m%d HEAD))
4036
@echo $(VERSION)
4137

42-
push:
43-
git push origin
38+
dist: _get_version
39+
git archive --format=tar.gz -o $(notdir $(CURDIR))-$(VERSION).tar.gz master -- $(THEMES)
4440

4541
release: _get_version push
4642
git tag -f $(VERSION)
43+
git push origin
4744
git push origin --tags
4845

4946
undo_release: _get_version
5047
-git tag -d $(VERSION)
5148
-git push --delete origin $(VERSION)
5249

5350

54-
.PHONY: all install uninstall _get_version push release undo_release
51+
.PHONY: all install uninstall _get_version dist release undo_release

0 commit comments

Comments
 (0)