-
Notifications
You must be signed in to change notification settings - Fork 6
/
Makefile
64 lines (47 loc) · 2.4 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
include flowpsi.conf
include test.conf
include revision.conf
FLOWPSI_BASE = $(shell pwd)
default: flowpsi tools turbulence guide addOns particle
all: default
install: all
FLOWPSI_INSTALL_DIR=$(FLOWPSI_INSTALL_DIR) FLOWPSI_INSTALL_PATH=$(FLOWPSI_INSTALL_PATH) bash Install.bash
.PHONEY: FRC flowpsi tools test turbulence guide addOns install particle
setup: FRC
mkdir -p lib; true
mkdir -p bin; true
flowpsi: setup
$(MAKE) -C src LOCI_BASE="$(LOCI_BASE)" all
turbulence: setup
$(MAKE) -C turbulence FLOWPSI_BASE="$(FLOWPSI_BASE)" all
addOns: setup
$(MAKE) -C addOns FLOWPSI_BASE="$(FLOWPSI_BASE)" all
particle: setup
$(MAKE) -C particle FLOWPSI_BASE="$(FLOWPSI_BASE)" install
tools: setup
$(MAKE) -C tools FLOWPSI_BASE="$(FLOWPSI_BASE)" all
docs: FRC
$(MAKE) -C guide FLOWPSI_BASE="$(FLOWPSI_BASE)" flowPsiGuide.pdf
test: flowpsi tools turbulence
$(MAKE) -C quickTest LOCI_BASE="$(LOCI_BASE)" FLOWPSI_BASE="$(FLOWPSI_BASE)" all;
grep -i pass quickTest/TestResults && ( grep -i fail quickTest/TestResults && exit 1 || echo Test Success )
FRC :
testclean: FRC
$(MAKE) -C quickTest LOCI_BASE="$(LOCI_BASE)" FLOWPSI_BASE="$(FLOWPSI_BASE)" clean; cd ..
clean: FRC
$(MAKE) -C quickTest -k LOCI_BASE="$(LOCI_BASE)" FLOWPSI_BASE="$(FLOWPSI_BASE)" clean
$(MAKE) -C src -k LOCI_BASE="$(LOCI_BASE)" FLOWPSI_BASE="$(FLOWPSI_BASE)" clean
$(MAKE) -C tools -k LOCI_BASE="$(LOCI_BASE)" FLOWPSI_BASE="$(FLOWPSI_BASE)" clean
$(MAKE) -C turbulence -k LOCI_BASE="$(LOCI_BASE)" FLOWPSI_BASE="$(FLOWPSI_BASE)" clean
$(MAKE) -C addOns -k LOCI_BASE="$(LOCI_BASE)" FLOWPSI_BASE="$(FLOWPSI_BASE)" clean
$(MAKE) -C particle -k LOCI_BASE="$(LOCI_BASE)" FLOWPSI_BASE="$(FLOWPSI_BASE)" clean
$(MAKE) -C guide -k LOCI_BASE="$(LOCI_BASE)" FLOWPSI_BASE="$(FLOWPSI_BASE)" clean
distclean: FRC
$(MAKE) -C quickTest -k LOCI_BASE="$(LOCI_BASE)" FLOWPSI_BASE="$(FLOWPSI_BASE)" clean
$(MAKE) -C src -k LOCI_BASE="$(LOCI_BASE)" FLOWPSI_BASE="$(FLOWPSI_BASE)" distclean
$(MAKE) -C tools -k LOCI_BASE="$(LOCI_BASE)" FLOWPSI_BASE="$(FLOWPSI_BASE)" distclean
$(MAKE) -C turbulence -k LOCI_BASE="$(LOCI_BASE)" FLOWPSI_BASE="$(FLOWPSI_BASE)" distclean
$(MAKE) -C addOns -k LOCI_BASE="$(LOCI_BASE)" FLOWPSI_BASE="$(FLOWPSI_BASE)" distclean
$(MAKE) -C particle -k LOCI_BASE="$(LOCI_BASE)" FLOWPSI_BASE="$(FLOWPSI_BASE)" distclean
$(MAKE) -C guide -k LOCI_BASE="$(LOCI_BASE)" FLOWPSI_BASE="$(FLOWPSI_BASE)" distclean
rm -fr lib bin output debug *~ include/*~