Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
#Under BSD License
#See clock.c for the license detail.

SRC = ttyclock.c ttyclock.h
SOURCE = ttyclock.c
HEADER = ttyclock.h
CC ?= gcc
BIN ?= tty-clock
PREFIX ?= /usr/local
Expand All @@ -26,10 +27,10 @@ else
LDFLAGS += $$(pkg-config --libs ncurses)
endif

tty-clock : ${SRC}
tty-clock : ${SOURCE} ${HEADER}

@echo "building ${SRC}"
${CC} ${CFLAGS} ${SRC} -o ${BIN} ${LDFLAGS}
@echo "building ${SOURCE}"
${CC} ${CFLAGS} ${SOURCE} -o ${BIN} ${LDFLAGS}

install : ${BIN}

Expand Down