aboutsummaryrefslogtreecommitdiffhomepage
path: root/Makefile
blob: 47367df677d4597abbddc906f5a2ce332b051276 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Uncomment this line if you want to compile 2048_clean.c
# SUFFIX ?= _clean

DIST := bin
PROGRAM := $(DIST)/2048

all: run

run: build
	./$(PROGRAM)

build: $(DIST) $(PROGRAM)

$(PROGRAM): 2048$(SUFFIX).c
	gcc $^ -lncurses -o $@

$(DIST):
	@mkdir $@

clean:
	@rm -rf $(DIST)

.PHONY: all run build clean