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.
 
 
 
 

31 lines
614 B

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