Makefile (374B)
1 include config.mk 2 3 NAME = lel 4 OBJ = lel.o 5 6 all: ${NAME} 7 8 .c.o: 9 ${CC} -c ${CFLAGS} $< 10 11 ${OBJ}: config.mk 12 13 ${NAME}: ${OBJ} 14 ${CC} -o $@ ${OBJ} ${LDFLAGS} 15 16 clean: 17 rm -f ${NAME} ${OBJ} 18 19 install: all 20 cp -f ${NAME} ${PREFIX}/bin 21 cp -f ${NAME}.1 ${MANPREFIX}/man1 22 23 uninstall: 24 rm -f ${PREFIX}/bin/${NAME} 25 rm -f ${MANPREFIX}/man1/${NAME}.1 26 27 .PHONY: all clean install uninstall