My slstatus configuration
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

Makefile 630 B

12345678910111213141516171819202122232425262728
  1. # See LICENSE file for copyright and license details.
  2. include config.mk
  3. all: slstatus
  4. slstatus: slstatus.c config.h config.mk
  5. ${CC} ${CFLAGS} -o $@ slstatus.c ${LDFLAGS}
  6. config.h:
  7. cp config.def.h $@
  8. clean:
  9. rm -f slstatus
  10. install: all
  11. mkdir -p ${DESTDIR}${PREFIX}/bin
  12. cp -f slstatus ${DESTDIR}${PREFIX}/bin
  13. chmod 755 ${DESTDIR}${PREFIX}/bin/slstatus
  14. mkdir -p ${DESTDIR}${MANPREFIX}/man1
  15. cp -f slstatus.1 ${DESTDIR}${MANPREFIX}/man1
  16. chmod 644 ${DESTDIR}${MANPREFIX}/man1/slstatus.1
  17. uninstall:
  18. rm -f ${DESTDIR}${PREFIX}/bin/slstatus
  19. rm -f ${DESTDIR}${MANPREFIX}/man1/slstatus.1
  20. .PHONY: all clean install uninstall