enhance: Makefile command with THEME_PREFIX variable
This commit is contained in:
@@ -13,6 +13,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|
||||||
|
- `Makefile` command with `THEME_PREFIX` variable
|
||||||
|
|
||||||
## [v1.0.2] - 20 June 2021
|
## [v1.0.2] - 20 June 2021
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
|||||||
@@ -21,31 +21,32 @@ windows: clean render bitmaps
|
|||||||
# Installation
|
# Installation
|
||||||
.ONESHELL:
|
.ONESHELL:
|
||||||
SHELL:=/bin/bash
|
SHELL:=/bin/bash
|
||||||
|
THEME_PREFIX = BreezeX
|
||||||
|
|
||||||
src = ./themes/BreezeX-*
|
src = ./themes/$(THEME_PREFIX)-*
|
||||||
local := ~/.icons
|
local := ~/.icons
|
||||||
local_dest := $(local)/BreezeX-*
|
local_dest := $(local)/$(THEME_PREFIX)-*
|
||||||
|
|
||||||
root := /usr/share/icons
|
root := /usr/share/icons
|
||||||
root_dest := $(root)/BreezeX-*
|
root_dest := $(root)/$(THEME_PREFIX)-*
|
||||||
|
|
||||||
install: themes
|
install: themes
|
||||||
@if [[ $EUID -ne 0 ]]; then
|
@if [[ $EUID -ne 0 ]]; then
|
||||||
@echo "> Installing 'BreezeX' cursors inside $(local)/..."
|
@echo "> Installing '$(THEME_PREFIX)' cursors inside $(local)/..."
|
||||||
@mkdir -p $(local)
|
@mkdir -p $(local)
|
||||||
@cp -r $(src) $(local)/ && echo "> Installed!"
|
@cp -r $(src) $(local)/ && echo "> Installed!"
|
||||||
@else
|
@else
|
||||||
@echo "> Installing 'BreezeX' cursors inside $(root)/..."
|
@echo "> Installing '$(THEME_PREFIX)' cursors inside $(root)/..."
|
||||||
@mkdir -p $(root)
|
@mkdir -p $(root)
|
||||||
@sudo cp -r $(src) $(root)/ && echo "> Installed!"
|
@sudo cp -r $(src) $(root)/ && echo "> Installed!"
|
||||||
@fi
|
@fi
|
||||||
|
|
||||||
uninstall:
|
uninstall:
|
||||||
@if [[ $EUID -ne 0 ]]; then
|
@if [[ $EUID -ne 0 ]]; then
|
||||||
@echo "> Removing 'BreezeX' cursors from '$(local)'..."
|
@echo "> Removing '$(THEME_PREFIX)' cursors from '$(local)'..."
|
||||||
@rm -rf $(local_dest)
|
@rm -rf $(local_dest)
|
||||||
@else
|
@else
|
||||||
@echo "> Removing 'BreezeX' cursors from '$(root)'..."
|
@echo "> Removing '$(THEME_PREFIX)' cursors from '$(root)'..."
|
||||||
@sudo rm -rf $(root_dest)
|
@sudo rm -rf $(root_dest)
|
||||||
@fi
|
@fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user