A mirror of phillbush's xmenu.
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 
 

30 行
530 B

  1. include config.mk
  2. SRCS = ${PROG}.c
  3. OBJS = ${SRCS:.c=.o}
  4. all: ${PROG}
  5. ${PROG}: ${OBJS}
  6. ${CC} -o $@ ${OBJS} ${LDFLAGS}
  7. ${OBJS}: config.h
  8. .c.o:
  9. ${CC} ${CFLAGS} -c $<
  10. clean:
  11. -rm ${OBJS} ${PROG}
  12. install: all
  13. install -d ${DESTDIR}${PREFIX}/bin/
  14. install -d ${DESTDIR}${MANPREFIX}/man1/
  15. install -m 755 ${PROG} ${DESTDIR}${PREFIX}/bin/
  16. install -m 644 ${PROG}.1 ${DESTDIR}${MANPREFIX}/man1/
  17. uninstall:
  18. rm -f ${DESTDIR}/${PREFIX}/bin/${PROG}
  19. rm -f ${DESTDIR}/${MANPREFIX}/man1/${PROG}.1
  20. .PHONY: all clean install uninstall