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.
33 lines
570 B
33 lines
570 B
SRC = clock.c |
|
CC = cc |
|
NCURSESFLAG = -lncurses |
|
BIN = tty-clock |
|
INSTALLPATH = /usr/local/bin/ |
|
CFLAGS = -Wall ${NCURSESFLAG} |
|
|
|
|
|
tty-clock : ${SRC} |
|
|
|
@echo "build ${SRC}" |
|
@echo "CC ${CFLAGS} ${SRC}" |
|
@${CC} ${CFLAGS} ${SRC} -o ${BIN} |
|
|
|
install : ${BIN} |
|
|
|
@echo "installing binary file to ${INSTALLPATH}${BIN}" |
|
@cp ${BIN} ${INSTALLPATH} |
|
@chmod 755 ${INSTALLPATH}${BIN} |
|
@echo "installed." |
|
|
|
uninstall : |
|
|
|
@echo "uninstalling binary file (${INSTALLPATH}${BIN})" |
|
@rm -f ${INSTALLPATH}${BIN} |
|
@echo "uninstalled :'(." |
|
|
|
clean : |
|
|
|
@echo "cleaning" |
|
@rm ${BIN} |
|
@echo "cleaned." |
|
|
|
|