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

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

all: $(DIST) $(PROGRAM)

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

$(DIST):
	@mkdir $@

clean:
	@rm -rf $(DIST)

.PHONY: all clean