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.
 
 
 
 

37 lines
970 B

  1. # See LICENSE file for copyright and license details.
  2. # slstatus - suckless status monitor
  3. .POSIX:
  4. include config.mk
  5. all: slstatus
  6. slstatus: slstatus.c config.h config.mk
  7. $(CC) -o $@ $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) slstatus.c $(LDLIBS)
  8. config.h:
  9. cp config.def.h $@
  10. clean:
  11. rm -f slstatus
  12. dist:
  13. rm -rf "slstatus-$(VERSION)"
  14. mkdir -p "slstatus-$(VERSION)"
  15. cp -R arg.h config.def.h config.mk LICENSE Makefile README slstatus.1 \
  16. slstatus.c slstatus.png "slstatus-$(VERSION)"
  17. tar -cf - "slstatus-$(VERSION)" | gzip -c > "slstatus-$(VERSION).tar.gz"
  18. rm -rf "slstatus-$(VERSION)"
  19. install: all
  20. mkdir -p "$(DESTDIR)$(PREFIX)/bin"
  21. cp -f slstatus "$(DESTDIR)$(PREFIX)/bin"
  22. chmod 755 "$(DESTDIR)$(PREFIX)/bin/slstatus"
  23. mkdir -p "$(DESTDIR)$(MANPREFIX)/man1"
  24. cp -f slstatus.1 "$(DESTDIR)$(MANPREFIX)/man1"
  25. chmod 644 "$(DESTDIR)$(MANPREFIX)/man1/slstatus.1"
  26. uninstall:
  27. rm -f "$(DESTDIR)$(PREFIX)/bin/slstatus"
  28. rm -f "$(DESTDIR)$(MANPREFIX)/man1/slstatus.1"