forked from cgreen-devs/cgreen
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.build
executable file
·35 lines (25 loc) · 927 Bytes
/
Makefile.build
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
# This Makefile is copied from the cgreen top directory (where it is
# named Makefile.build) and put in a subdirectory called 'build' where
# Cmake out of source builds are made. This Makefile then
# automatically creates subdirectories for C and C++ builds
# configuring them using the cmake command. Once created you can
# always tweak the cmake setup as with any cmake build directory.
all: build-c build-c++
for d in build-* ; do cd $$d; make ; cd .. ; done
clean:
for d in build-* ; do cd $$d; make clean ; cd .. ; done
check test:
for d in build-* ; do cd $$d; make check ; cd .. ; done
package:
for d in build-* ; do cd $$d; make package ; cd .. ; done
install:
for d in build-* ; do cd $$d; make install ; cd .. ; done
############ Internal
dirs: build-c build-c++
build-c:
mkdir build-c
cd build-c; cmake ../..
build-c++:
mkdir build-c++
cd build-c++; cmake -DCGREEN_WITH_CXX:bool=ON ../..
.SILENT: