My slstatus configuration
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
 
 
 
 

84 rindas
2.2 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. HDR = arg.h
  7. COM =\
  8. battery\
  9. cpu\
  10. datetime\
  11. disk\
  12. entropy\
  13. hostname\
  14. ip\
  15. kernel_release\
  16. keyboard_indicators\
  17. load_avg\
  18. num_files\
  19. ram\
  20. run_command\
  21. swap\
  22. temperature\
  23. uptime\
  24. user\
  25. volume\
  26. wifi
  27. all: slstatus
  28. slstatus: slstatus.o $(COM:=.o) $(REQ:=.o)
  29. slstatus.o: slstatus.c slstatus.h $(HDR) $(REQ:=.h)
  30. battery.o: battery.c config.mk $(HDR) $(REQ:=.h)
  31. cpu.o: cpu.c config.mk $(HDR) $(REQ:=.h)
  32. datetime.o: datetime.c config.mk $(HDR) $(REQ:=.h)
  33. disk.o: disk.c config.mk $(HDR) $(REQ:=.h)
  34. entropy.o: entropy.c config.mk $(HDR) $(REQ:=.h)
  35. hostname.o: hostname.c config.mk $(HDR) $(REQ:=.h)
  36. ip.o: ip.c config.mk $(HDR) $(REQ:=.h)
  37. kernel_release.o: kernel_release.c config.mk $(HDR) $(REQ:=.h)
  38. keyboard_indicators.o: keyboard_indicators.c config.mk $(HDR) $(REQ:=.h)
  39. load_avg.o: load_avg.c config.mk $(HDR) $(REQ:=.h)
  40. num_files.o: num_files.c config.mk $(HDR) $(REQ:=.h)
  41. ram.o: ram.c config.mk $(HDR) $(REQ:=.h)
  42. run_command.o: run_command.c config.mk $(HDR) $(REQ:=.h)
  43. swap.o: swap.c config.mk $(HDR) $(REQ:=.h)
  44. temperature.o: temperature.c config.mk $(HDR) $(REQ:=.h)
  45. uptime.o: uptime.c config.mk $(HDR) $(REQ:=.h)
  46. user.o: user.c config.mk $(HDR) $(REQ:=.h)
  47. volume.o: volume.c config.mk $(HDR) $(REQ:=.h)
  48. wifi.o: wifi.c config.mk $(HDR) $(REQ:=.h)
  49. .o:
  50. $(CC) -o $@ $(LDFLAGS) $< $(COM:=.o) $(REQ:=.o) $(LDLIBS)
  51. .c.o:
  52. $(CC) -c $(CPPFLAGS) $(CFLAGS) $<
  53. clean:
  54. rm -f slstatus slstatus.o $(COM:=.o) $(REQ:=.o)
  55. dist:
  56. rm -rf "slstatus-$(VERSION)"
  57. mkdir -p "slstatus-$(VERSION)"
  58. cp -R LICENSE Makefile README config.mk config.def.h \
  59. $(HDR) slstatus.c $(COM:=.c) $(REQ:=.c) $(REQ:=.h) \
  60. slstatus.1 "slstatus-$(VERSION)"
  61. tar -cf - "slstatus-$(VERSION)" | gzip -c > "slstatus-$(VERSION).tar.gz"
  62. rm -rf "slstatus-$(VERSION)"
  63. install: all
  64. mkdir -p "$(DESTDIR)$(PREFIX)/bin"
  65. cp -f slstatus "$(DESTDIR)$(PREFIX)/bin"
  66. chmod 755 "$(DESTDIR)$(PREFIX)/bin/slstatus"
  67. mkdir -p "$(DESTDIR)$(MANPREFIX)/man1"
  68. cp -f slstatus.1 "$(DESTDIR)$(MANPREFIX)/man1"
  69. chmod 644 "$(DESTDIR)$(MANPREFIX)/man1/slstatus.1"
  70. uninstall:
  71. rm -f "$(DESTDIR)$(PREFIX)/bin/slstatus"
  72. rm -f "$(DESTDIR)$(MANPREFIX)/man1/slstatus.1"