diff options
| author | stkhan <personal@slickd.xyz> | 2021-04-21 19:36:08 +0000 |
|---|---|---|
| committer | stkhan <personal@slickd.xyz> | 2021-04-21 19:36:08 +0000 |
| commit | 661cc0a02fb3d38440ad8c1e295fdbde9c1299d8 (patch) | |
| tree | f66f68dc51e04a1cacb3d609be5fa0c83ba876c1 /paleofetch/Makefile | |
| parent | fe2168b902a1775ae50041710b79d7751237f1ce (diff) | |
Added paleofetch
Diffstat (limited to 'paleofetch/Makefile')
| -rw-r--r-- | paleofetch/Makefile | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/paleofetch/Makefile b/paleofetch/Makefile new file mode 100644 index 0000000..b272a9e --- /dev/null +++ b/paleofetch/Makefile @@ -0,0 +1,17 @@ +CFLAGS=-O2 -Wall -Wextra -lX11 -lpci +PREFIX=/usr +CACHE=$(shell if [ "$$XDG_CACHE_HOME" ]; then echo "$$XDG_CACHE_HOME"; else echo "$$HOME"/.cache; fi) + +all: paleofetch + +clean: + rm -f paleofetch $(CACHE)/paleofetch + +paleofetch: paleofetch.c paleofetch.h config.h + $(eval battery_path := $(shell ./config_scripts/battery_config.sh)) + $(CC) paleofetch.c -o paleofetch $(CFLAGS) -D $(battery_path) + strip paleofetch + +install: paleofetch + mkdir -p $(PREFIX)/bin + install ./paleofetch $(PREFIX)/bin/paleofetch |