My slstatus configuration
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 

31 行
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