forked from hoppet-code/hoppet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
48 lines (31 loc) · 1.03 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
DIRS= src example_f90 benchmarking benchmarking/test_acc
all: $(DIRS)
src: force_look
cd src; $(MAKE) $(MFLAGS)
example_f90: src force_look
cd example_f90; $(MAKE) $(MFLAGS)
benchmarking: src force_look
cd benchmarking; $(MAKE) $(MFLAGS)
benchmarking/test_acc: src force_look
cd benchmarking/test_acc; $(MAKE) $(MFLAGS)
# only one directory needs installation
install: force_look
scripts/install-sh hoppet-config `cat src/.makef95.prefix`/bin/hoppet-config
cd src; $(MAKE) $(MFLAGS) install
install-mod: force_look
cd src; $(MAKE) $(MFLAGS) install-mod
check: example_f90
scripts/check
clean: force_look
@echo cleaning up in .
-for d in $(DIRS); do (cd $$d; $(MAKE) $(MFLAGS) clean ); done
realclean: force_look
-for d in $(DIRS); do (cd $$d; $(MAKE) $(MFLAGS) realclean ); done
distclean: force_look
-for d in $(DIRS); do (cd $$d; $(MAKE) $(MFLAGS) distclean ); done
rm -f config.log
config.log:
@-echo "you must run ./configure before make (try ./configure -h to see options)"
@exit 1
force_look: config.log
@true