aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 6013a0902ded0645d123d5139ed8da117695ba59 (plain)
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