1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
DAY=$(notdir ${PWD}) CFLAGS= DAYFLAGS= INPUT=${DAY}.input -include override.mk ${DAY}: ${DAY}.c @gcc ${CFLAGS} -o $@ $< ${DAYFLAGS} run: ${DAY} ${INPUT} @./${DAY} < ${INPUT} clean: @rm -f ${DAY} .PHONY: run clean