forked from cheshirekow/cmake_format
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
30 lines (25 loc) · 588 Bytes
/
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
# Requirements (based on ubuntu 16.04)
# apt-get install
# python-pip
# cmake
#
# pip install --upgrade pip
# pip install --user
# autopep8
# flake8
# pylint
# sphinx
#
mkfile_path := $(abspath $(lastword $(MAKEFILE_LIST)))
current_dir := $(notdir $(patsubst %/,%,$(dir $(mkfile_path))))
export PYTHONPATH=$(current_dir)
% : .build/Makefile
@echo "Real build system"
cd .build/ && env -u MAKELEVEL $(MAKE) $@
all:
test: all
.build/Makefile:
@echo "Bootstraping build system"
mkdir -p .build
touch .build/CMakeCache.txt
cd .build && env cmake -DIS_TRAVIS_CI=True ../