From 377bc9fe29bcf4a06f65bd600f615331278c1083 Mon Sep 17 00:00:00 2001 From: ful1e5 <24286590+ful1e5@users.noreply.github.com> Date: Fri, 12 Nov 2021 10:33:06 +0530 Subject: [PATCH] enhance: `Makefile` command with `THEME_PREFIX` variable --- CHANGELOG.md | 2 ++ Makefile | 15 ++++++++------- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 51b968a..5b78ec4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added +- `Makefile` command with `THEME_PREFIX` variable + ## [v1.0.2] - 20 June 2021 ### Changed diff --git a/Makefile b/Makefile index 1867bfd..8ccb537 100644 --- a/Makefile +++ b/Makefile @@ -21,31 +21,32 @@ windows: clean render bitmaps # Installation .ONESHELL: SHELL:=/bin/bash +THEME_PREFIX = BreezeX -src = ./themes/BreezeX-* +src = ./themes/$(THEME_PREFIX)-* local := ~/.icons -local_dest := $(local)/BreezeX-* +local_dest := $(local)/$(THEME_PREFIX)-* root := /usr/share/icons -root_dest := $(root)/BreezeX-* +root_dest := $(root)/$(THEME_PREFIX)-* install: themes @if [[ $EUID -ne 0 ]]; then - @echo "> Installing 'BreezeX' cursors inside $(local)/..." + @echo "> Installing '$(THEME_PREFIX)' cursors inside $(local)/..." @mkdir -p $(local) @cp -r $(src) $(local)/ && echo "> Installed!" @else - @echo "> Installing 'BreezeX' cursors inside $(root)/..." + @echo "> Installing '$(THEME_PREFIX)' cursors inside $(root)/..." @mkdir -p $(root) @sudo cp -r $(src) $(root)/ && echo "> Installed!" @fi uninstall: @if [[ $EUID -ne 0 ]]; then - @echo "> Removing 'BreezeX' cursors from '$(local)'..." + @echo "> Removing '$(THEME_PREFIX)' cursors from '$(local)'..." @rm -rf $(local_dest) @else - @echo "> Removing 'BreezeX' cursors from '$(root)'..." + @echo "> Removing '$(THEME_PREFIX)' cursors from '$(root)'..." @sudo rm -rf $(root_dest) @fi