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.
 
 
 
 

72 lines
1.8 KiB

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