paleofetch

mrgrouse's paleofetch fork, a system fetch tool written in C, inspired by suckless' programming style.
Log | Files | Refs | README | LICENSE

Makefile (543B)


      1 CFLAGS=-O2 -Wall -Wextra -lX11 -lpci
      2 #PREFIX=$(HOME)/.local
      3 PREFIX=/usr/local
      4 CACHE=$(shell if [ "$$XDG_CACHE_HOME" ]; then echo "$$XDG_CACHE_HOME"; else echo "$$HOME"/.cache; fi)
      5 CC = gcc
      6 
      7 all: paleofetch
      8 
      9 clean:
     10 	rm -f paleofetch $(CACHE)/paleofetch
     11 
     12 paleofetch: paleofetch.c paleofetch.h config.h
     13 	$(eval battery_path := $(shell ./config_scripts/battery_config.sh))
     14 	$(CC) paleofetch.c -o paleofetch $(CFLAGS) -D $(battery_path)
     15 #	strip paleofetch
     16 
     17 install: paleofetch
     18 	mkdir -p $(PREFIX)/bin
     19 	install ./paleofetch $(PREFIX)/bin/paleofetch