-
Notifications
You must be signed in to change notification settings - Fork 1
/
makefile
46 lines (34 loc) · 899 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
BOUT_TOP ?= ../..
SOURCEH = neutrals.hxx neutrals_diffusion.hxx
SOURCEC = neutrals.cxx neutrals_diffusion.cxx cross_section.cxx \
radiation.cxx neutrals_parallel.cxx helper.cxx \
radiation_factory.cxx
ifdef MODULE_DIR
SUB_NAME = neutrals
TARGET = sub
else
SOURCEC += calc.cxx
TARGET = calc
all: rates.pdf
rates.pdf: rates.gpl rates.dat
gpl rates.gpl
cp rates.pdf /home/dave/Documents/phd/slides/bremen17/graphic/neut_rates.pdf
rates.dat: calc
./calc > rates.dat
endif
CXXFLAGS = -g
include $(BOUT_TOP)/make.config
FORCE:
git_version.hxx: FORCE
@sh gen_version_header.sh
neutrals.o: git_version.hxx neutrals.cxx neutrals.hxx
lib:
@$(AR) $(ARFLAGS) $(SOUREC%.cxx=.o) libneutrals.o
generated=cross_section_factory.cxx
%xx: %xx.in.py
@echo " Generating $@"
python3 $< > $@
doc:
./doc.py mem > members.rst
./doc.py tree > tree.rst
./doc.py def > defaults.rst