A mirror of phillbush's xmenu.
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.
 
 
 
 
 

28 line
474 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 -m 755 ${PROG} ${DESTDIR}${PREFIX}/bin/${PROG}
  14. install -D -m 644 ${PROG}.1 ${DESTDIR}${MANPREFIX}/man1/${PROG}.1
  15. uninstall:
  16. rm -f ${DESTDIR}/${PREFIX}/bin/${PROG}
  17. rm -f ${DESTDIR}/${MANPREFIX}/man1/${PROG}.1
  18. .PHONY: all clean install uninstall