My slstatus configuration
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.
 
 
 
 

67 lines
1.6 KiB

  1. # See LICENSE file for copyright and license details
  2. # slstatus - suckless status monitor
  3. .POSIX:
  4. include config.mk
  5. REQ = util
  6. COM =\
  7. components/battery\
  8. components/cpu\
  9. components/datetime\
  10. components/disk\
  11. components/entropy\
  12. components/hostname\
  13. components/ip\
  14. components/kernel_release\
  15. components/keyboard_indicators\
  16. components/load_avg\
  17. components/num_files\
  18. components/ram\
  19. components/run_command\
  20. components/swap\
  21. components/temperature\
  22. components/uptime\
  23. components/user\
  24. components/volume\
  25. components/wifi
  26. all: slstatus
  27. slstatus: slstatus.o $(COM:=.o) $(REQ:=.o)
  28. slstatus.o: slstatus.c slstatus.h arg.h config.h $(REQ:=.h)
  29. $(COM:=.o): config.mk $(REQ:=.h)
  30. config.h:
  31. cp config.def.h $@
  32. .o:
  33. $(CC) -o $@ $(LDFLAGS) $< $(COM:=.o) $(REQ:=.o) $(LDLIBS)
  34. .c.o:
  35. $(CC) -o $@ -c $(CPPFLAGS) $(CFLAGS) $<
  36. clean:
  37. rm -f slstatus slstatus.o $(COM:=.o) $(REQ:=.o)
  38. dist:
  39. rm -rf "slstatus-$(VERSION)"
  40. mkdir -p "slstatus-$(VERSION)/components"
  41. cp -R LICENSE Makefile README config.mk config.def.h \
  42. arg.h slstatus.c $(COM:=.c) $(REQ:=.c) $(REQ:=.h) \
  43. slstatus.1 "slstatus-$(VERSION)"
  44. tar -cf - "slstatus-$(VERSION)" | gzip -c > "slstatus-$(VERSION).tar.gz"
  45. rm -rf "slstatus-$(VERSION)"
  46. install: all
  47. mkdir -p "$(DESTDIR)$(PREFIX)/bin"
  48. cp -f slstatus "$(DESTDIR)$(PREFIX)/bin"
  49. chmod 755 "$(DESTDIR)$(PREFIX)/bin/slstatus"
  50. mkdir -p "$(DESTDIR)$(MANPREFIX)/man1"
  51. cp -f slstatus.1 "$(DESTDIR)$(MANPREFIX)/man1"
  52. chmod 644 "$(DESTDIR)$(MANPREFIX)/man1/slstatus.1"
  53. uninstall:
  54. rm -f "$(DESTDIR)$(PREFIX)/bin/slstatus"
  55. rm -f "$(DESTDIR)$(MANPREFIX)/man1/slstatus.1"