papirus-icon-theme/Makefile

49 lines
1.2 KiB
Makefile
Raw Normal View History

2017-09-25 11:53:14 -04:00
# GNU make is required to run this file. To install on *BSD, run:
# gmake PREFIX=/usr/local install
PREFIX ?= /usr
IGNORE ?=
THEMES ?= ePapirus Papirus Papirus-Adapta Papirus-Adapta-Nokto Papirus-Dark Papirus-Light
# excludes IGNORE from THEMES list
THEMES := $(filter-out $(IGNORE), $(THEMES))
2017-01-15 07:46:42 -05:00
all:
2017-01-10 07:47:39 -05:00
install:
mkdir -p $(DESTDIR)$(PREFIX)/share/icons
cp -R $(THEMES) $(DESTDIR)$(PREFIX)/share/icons
2017-09-25 11:53:14 -04:00
# skip building icon caches when packaging
$(if $(DESTDIR),,$(MAKE) $(THEMES))
2017-01-10 07:47:39 -05:00
$(THEMES):
-gtk-update-icon-cache -q $(DESTDIR)$(PREFIX)/share/icons/$@
2017-01-12 04:34:03 -05:00
2017-01-10 07:47:39 -05:00
uninstall:
-rm -rf $(foreach theme,$(THEMES),$(DESTDIR)$(PREFIX)/share/icons/$(theme))
2017-01-10 07:47:39 -05:00
_get_version:
2017-01-18 13:24:23 -05:00
$(eval VERSION := $(shell git show -s --format=%cd --date=format:%Y%m%d HEAD))
@echo $(VERSION)
2017-01-10 07:47:39 -05:00
dist: _get_version
git archive --format=tar.gz -o $(notdir $(CURDIR))-$(VERSION).tar.gz master -- $(THEMES)
2017-01-10 07:47:39 -05:00
release: _get_version
2017-01-10 07:47:39 -05:00
git tag -f $(VERSION)
git push origin
2017-01-10 07:47:39 -05:00
git push origin --tags
undo_release: _get_version
-git tag -d $(VERSION)
-git push --delete origin $(VERSION)
.PHONY: $(THEMES) all install uninstall _get_version dist release undo_release
2017-09-25 11:53:14 -04:00
# .BEGIN is ignored by GNU make so we can use it as a guard
.BEGIN:
@head -3 Makefile
@false