Makefile (589B)
1 VERSION = 0.1 2 3 include config.mk 4 5 OBJ = pomodoro.o 6 BIN = pomodoro 7 8 all: ${BIN} 9 10 ${BIN}: ${OBJ} 11 ${CC} ${LDFLAGS} -o $@ ${OBJ} ${LIBS} 12 13 pomodoro.o: 14 15 install: all 16 mkdir -p ${DESTDIR}${PREFIX}/bin 17 cp -f ${BIN} ${DESTDIR}${PREFIX}/bin 18 chmod 755 ${DESTDIR}${PREFIX}/bin/${BIN} 19 mkdir -p ${DESTDIR}${MANPREFIX}/man1 20 cp -f ${BIN}.1 ${DESTDIR}${MANPREFIX}/man1 21 chmod 644 ${DESTDIR}${MANPREFIX}/man1/${BIN}.1 22 23 uninstall: 24 rm -f ${DESTDIR}${PREFIX}/bin/${BIN} \ 25 ${DESTDIR}${MANPREFIX}/man1/${BIN}.1 26 27 clean: 28 rm -f ${OBJ} pomodoro pomodoro.core pomodoro.o 29 30 .PHONY: all clean install uninstall