Bibata_Cursor/Makefile
ful1e5 d21546caeb 🧑‍🤝‍🧑 Group Make commands
2021-04-06 16:39:34 +05:30

74 lines
1.5 KiB
Makefile

all: clean render build
.PHONY: all
# Default
clean:
@rm -rf bitmaps themes
render: bitmapper svg
@cd bitmapper && make install render_modern render_original
build: bitmaps
@cd builder && make setup build clean
# Specific platform build
unix: clean render bitmaps
@cd builder && make setup build_unix
windows: clean render bitmaps
@cd builder && make setup build_windows
# Bibata Modern
modern: clean render_modern build_modern
render_modern: bitmapper svg
@cd bitmapper && make install render_modern
build_modern: bitmaps
@cd builder && make setup build_modern clean
# Bibata Original
original:clean render_original build_original
render_original: bitmapper svg
@cd bitmapper && make install render_original
build_original: bitmaps
@cd builder && make setup build_original clean
# Installation
.ONESHELL:
SHELL:=/bin/bash
src = ./themes/Bibata-*
local := ~/.icons
local_dest := $(local)/Bibata-*
root := /usr/share/icons
root_dest := $(root)/Bibata-*
install: themes
@if [[ $EUID -ne 0 ]]; then
@echo "> Installing 'Bibata' cursors inside $(local)/..."
@mkdir -p $(local)
@cp -r $(src) $(local)/ && echo "> Installed!"
@else
@echo "> Installing 'Bibata' cursors inside $(root)/..."
@mkdir -p $(root)
@sudo cp -r $(src) $(root)/ && echo "> Installed!"
@fi
uninstall:
@if [[ $EUID -ne 0 ]]; then
@echo "> Removing 'Bibata' cursors from '$(local)'..."
@rm -rf $(local_dest)
@else
@echo "> Removing 'Bibata' cursors from '$(root)'..."
@sudo rm -rf $(root_dest)
@fi
reinstall: uninstall install