-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathMakefile
64 lines (49 loc) · 1.35 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
.PHONY: all clean realclean check test update get-deps install uninstall
.PHONY: check-install tags
all: include/xenon/ict/ict.h build debug
ninja -C build
build:
mkdir $@ && cd $@ && cmake -GNinja -DCMAKE_BUILD_TYPE=Release ..
debug:
mkdir $@ && cd $@ && cmake -GNinja -DCMAKE_BUILD_TYPE=Debug ..
xcode:
mkdir $@ && cd $@ && cmake -GXcode -DCMAKE_BUILD_TYPE=Debug ..
clean:
@test -d build && ninja -C build clean || true
realclean:
rm -rf build
check: build
ninja -C build test
install: build
ninja -C build install
uninstall:
check-install: build
ifeq ($(TRAVIS_OS_NAME),linux)
sudo ldconfig
endif
rm -rf instacheck/build
cd instacheck && mkdir build && cd build && cmake -GNinja ..
ninja -C instacheck/build
ninja -C instacheck/build test
tags:
@echo Making tags...
@$(RM) tags; find . -name '*.cpp' \
-o -name '*.h' > flist && \
ctags --file-tags=yes -L flist --totals && rm flist
@echo tags complete.
include/xenon/ict/ict.h:
git submodule update --init --recursive
update:
git submodule foreach git pull origin master
get-deps:
ifeq ($(TRAVIS_OS_NAME),linux)
sudo apt-get update
sudo apt-get install -y ninja-build
endif
ifeq ($(TRAVIS_OS_NAME),osx)
sudo cp deps/osx/ninja /usr/local/bin
endif
xddl.adoc: all ex.adoc
$(RM) xddl.adoc
build/xspx/xspx --adoc src/xddl.xspx | build/tools/procadoc | \
build/tools/procadoc > xddl.adoc