aboutsummaryrefslogtreecommitdiffhomepage
path: root/content/2022-05-30-cmake-cargo-example/Makefile
blob: e269cb203035643ec7ebf174e282be2b5f4623df (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
TYPE ?= Debug
BDIR := BUILD/$(TYPE)

calc: config
	cmake --build $(BDIR) --target calc

config: CMakeLists.txt
	cmake -B $(BDIR) -DCMAKE_BUILD_TYPE=$(TYPE) .

run: calc
	$(BDIR)/calc

clean:
	$(RM) -r BUILD