CC=gcc | |
FLAGS=-Wall ${CFLAGS} | |
EXEC_NAME=beep | |
INSTALL_PREFIX= | |
BIN_DIR=${INSTALL_PREFIX}/usr/bin | |
MAN_FILE=beep.1.gz | |
MAN_DIR=${INSTALL_PREFIX}/usr/man/man1 | |
default : ${EXEC_NAME} | |
clean : | |
rm ${EXEC_NAME} | |
${EXEC_NAME} : beep.c | |
${CC} ${FLAGS} -o ${EXEC_NAME} beep.c | |
install : | |
-mkdir -p ${BIN_DIR} | |
cp ${EXEC_NAME} ${BIN_DIR} | |
# rm -f /usr/man/man1/beep.1.bz2 | |
-mkdir -p ${MAN_DIR} | |
cp ${MAN_FILE} ${MAN_DIR} |