1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
SUFFIX ?= _minified 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