.PHONY: build clean

build: .obj/chilon_sql_to_source

clean:
	rm -rf .obj

.obj/%: %.cpp
	@mkdir -p .obj
	${CXX} -std=c++0x $^ -o $@ -I ../..

ifeq ($(wildcard .obj/*),)
install:
else
install:
	@mkdir -p ${DESTDIR}/${prefix}/bin
	@strip .obj/*
	@cp .obj/* ${DESTDIR}/${prefix}/bin
endif
