My slstatus configuration
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
 
 
 
 

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