forked from plumed/plumed2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
67 lines (43 loc) · 942 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
-include Makefile.conf
SRCDIRS := src test
SUBDIRS := $(SRCDIRS) user-doc developer-doc regtest
SUBDIRSCLEAN:=$(addsuffix .clean,$(SUBDIRS))
.PHONY: all lib clean $(SRCDIRS) doc docclean check
# if machine dependent configuration has been found:
ifdef GCCDEP
all:
$(MAKE) lib
lib:
$(MAKE) -C src
install:
$(MAKE) -C src install
uninstall:
$(MAKE) -C src uninstall
$(SRCDIRS):
$(MAKE) -C $@
# compile plumed before tests:
test: src
# doxygen
doc:
$(MAKE) -C user-doc
$(MAKE) -C developer-doc
# regtests
check: src test
$(MAKE) -C regtest
else
all:
@echo No configuration available
@echo First run ./configure.sh
endif
# these targets are available also without configuration
clean: $(SUBDIRSCLEAN)
rm -f *~ */*~ */*/*~
$(SUBDIRSCLEAN): %.clean:
$(MAKE) -C $* clean
fullclean:
make clean
rm -f Makefile.conf
rm -f sourceme.sh
docclean:
cd user-doc && make clean
cd developer-doc && make clean