Another copy of my dotfiles. Because I don't completely trust GitHub.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
510 B

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