]> Git Repo - serial.git/blob - Makefile
Make Release|Win32 configuration compile
[serial.git] / Makefile
1 all: serial
2
3 CMAKE_FLAGS := -DCMAKE_INSTALL_PREFIX=/tmp/usr/local
4
5 install:
6         cd build && make install
7
8 uninstall:
9         cd build && make uninstall
10
11 serial:
12         @mkdir -p build
13         cd build && cmake $(CMAKE_FLAGS) ..
14 ifneq ($(MAKE),)
15         cd build && $(MAKE)
16 else
17         cd build && make
18 endif
19
20 .PHONY: clean
21 clean:
22         rm -rf build
23
24 .PHONY: doc
25 doc:
26         @doxygen doc/Doxyfile
27 ifeq ($(UNAME),Darwin)
28         @open doc/html/index.html
29 endif
30
31 .PHONY: test
32 test:
33         @mkdir -p build
34         cd build && cmake $(CMAKE_FLAGS) ..
35 ifneq ($(MAKE),)
36         cd build && $(MAKE) run_tests
37 else
38         cd build && make run_tests
39 endif
This page took 0.024234 seconds and 4 git commands to generate.