darkine-kde/Makefile

52 lines
1.6 KiB
Makefile
Raw Normal View History

2018-03-30 21:39:48 +02:00
# GNU make is required to run this file. To install on *BSD, run:
# gmake PREFIX=/usr/local install
PREFIX ?= /usr
IGNORE ?=
2019-05-17 14:13:45 +02:00
THEMES ?= plasma color-schemes aurorae Kvantum icons sddm wallpapers konsole themes
2018-03-30 21:39:48 +02:00
# excludes IGNORE from THEMES list
THEMES := $(filter-out $(IGNORE), $(THEMES))
all:
install:
mkdir -p $(DESTDIR)$(PREFIX)/share
cp -R $(THEMES) $(DESTDIR)$(PREFIX)/share
uninstall:
2019-05-13 15:08:36 +02:00
-rm -rf $(DESTDIR)$(PREFIX)/share/plasma/look-and-feel/darkine
-rm -rf $(DESTDIR)$(PREFIX)/share/plasma/desktoptheme/darkine
2018-03-30 21:39:48 +02:00
-rm -r $(DESTDIR)$(PREFIX)/share/color-schemes/Darkine.colors
2019-05-13 15:08:36 +02:00
-rm -rf $(DESTDIR)$(PREFIX)/share/aurorae/themes/Darkine-classic
-rm -rf $(DESTDIR)$(PREFIX)/share/aurorae/themes/Darkine-round
2018-03-30 21:39:48 +02:00
-rm -rf $(DESTDIR)$(PREFIX)/share/Kvantum/Darkine
2019-05-13 15:08:36 +02:00
-rm -rf $(DESTDIR)$(PREFIX)/share/icons/darkine
-rm -rf $(DESTDIR)$(PREFIX)/share/sddm/themes/darkine
2018-03-30 21:39:48 +02:00
-rm -rf $(DESTDIR)$(PREFIX)/share/wallpapers/Darkine
2019-05-13 15:08:36 +02:00
-rm -r $(DESTDIR)$(PREFIX)/share/konsole/Darkine.colorscheme
2019-05-17 14:13:45 +02:00
-rm -rf $(DESTDIR)$(PREFIX)/share/themes/Darkine
2018-03-30 21:39:48 +02:00
_get_version:
$(eval VERSION := $(shell git show -s --format=%cd --date=format:%Y%m%d HEAD))
@echo $(VERSION)
dist: _get_version
git archive --format=tar.gz -o $(notdir $(CURDIR))-$(VERSION).tar.gz master -- $(THEMES)
release: _get_version
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 dist release undo_release
# .BEGIN is ignored by GNU make so we can use it as a guard
.BEGIN:
@head -3 Makefile
2019-05-13 15:08:36 +02:00
@false