.PHONY: clean

build/balls: build
	$(MAKE) -C build

build: CMakeLists.txt
	if [ ! -d build ]; then mkdir build; fi
	cd build && cmake ..

CMakeLists.txt: code.txt
	atangle -r $@ $< > $@

clean:
	rm -fr CMakeLists.txt build balls.cpp
