Skip to content

Commit

Permalink
Update Makefile (see commit description)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
SmartFinn committed Sep 24, 2017
1 parent 10bcb75 commit ce86346
Showing 1 changed file with 10 additions and 13 deletions.
23 changes: 10 additions & 13 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,19 +1,15 @@
PREFIX ?= /usr
IGNORE ?=
THEMES ?= aurorae color-schemes konsole konversation Kvantum plasma wallpapers yakuake

# excludes IGNORE from THEMES list
THEMES := $(filter-out $(IGNORE), $(THEMES))

all:

install:
mkdir -p $(DESTDIR)$(PREFIX)/share
cp -R \
aurorae \
color-schemes \
konsole \
konversation \
Kvantum \
plasma \
wallpapers \
yakuake \
$(DESTDIR)$(PREFIX)/share
cp -R $(THEMES) $(DESTDIR)$(PREFIX)/share

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

push:
git push origin
dist: _get_version
git archive --format=tar.gz -o $(notdir $(CURDIR))-$(VERSION).tar.gz master -- $(THEMES)

release: _get_version push
git tag -f $(VERSION)
git push origin
git push origin --tags

undo_release: _get_version
-git tag -d $(VERSION)
-git push --delete origin $(VERSION)


.PHONY: all install uninstall _get_version push release undo_release
.PHONY: all install uninstall _get_version dist release undo_release

0 comments on commit ce86346

Please sign in to comment.