-
Notifications
You must be signed in to change notification settings - Fork 30
/
Copy pathMakefile.am
84 lines (69 loc) · 1.92 KB
/
Makefile.am
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# INCLUDES
ACLOCAL_AMFLAGS = -I config
# TARGETS
SUBDIRS = src
if ENABLE_DEBUG
SUBDIRS += tests
endif
# DOCS and TUTORIAL
if HAVE_DOXYGEN
docs:
make -C docs docs/doxygen
endif
tutorial:
@if [[ $(abs_top_builddir) != $(abs_top_srcdir) ]]; then\
rsync -ar --exclude='$(abs_top_srcdir)/tutorial/code/Makefile' $(abs_top_srcdir)/tutorial/code/ $(abs_top_builddir)/tutorial/code/;\
fi
make -C tutorial/code
.PHONY: docs tutorial defaults
# FOR DISTRIBUTION
EXTRA_DIST = configure.ac.in config.site autogen.sh bin tutorial/* \
tests/defs tests/runtests.sh \
docs/Doxyfile.in docs/Makefile.am docs/Makefile.in docs/mainpage.dox docs/new_arch.png
# TESTING
if ENABLE_DEBUG
check:
cd tests/; ./runtests.sh $(GPI2_RUNTEST_OPTIONS)
endif
# INSTALL RUN SCRIPTS
if WITH_LOADLEVELER
install-exec-hook:
cp $(abs_top_srcdir)/bin/gaspi_run.poe $(DESTDIR)$(bindir)/gaspi_run
head -n 18 $(abs_top_srcdir)/bin/gaspi_cleanup > $(DESTDIR)$(bindir)/gaspi_cleanup
chmod +x $(DESTDIR)$(bindir)/gaspi_cleanup
else
if WITH_SLURM
install-exec-hook:
cp $(abs_top_srcdir)/bin/gaspi_run.slurm $(DESTDIR)$(bindir)/gaspi_run
cp $(abs_top_srcdir)/bin/slurm.env $(DESTDIR)$(bindir)/
head -n 18 $(abs_top_srcdir)/bin/gaspi_cleanup > $(DESTDIR)$(bindir)/gaspi_cleanup
chmod +x $(DESTDIR)$(bindir)/gaspi_cleanup
else
bin_SCRIPTS = bin/ssh.spawner bin/gaspi_cleanup
install-exec-hook:
cp $(abs_top_srcdir)/bin/gaspi_run.ssh $(DESTDIR)$(bindir)/gaspi_run
endif
endif
# CLEAN
MOSTLYCLEANFILES = $(DX_CLEANFILES)
CLEANFILES = *~ *.bak m4/*~
clean-tutorial:
make -C tutorial/code clean
.PHONY: clean-tutorial
if HAVE_DOXYGEN
clean-docs:
make -C docs clean
.PHONY +: clean-docs
clean-local:
make -C docs clean
make -C tutorial/code clean
else
clean-local:
make -C tutorial/code clean
endif
uninstall-hook:
-rm $(DESTDIR)$(bindir)/gaspi_run
-rm $(DESTDIR)$(bindir)/ssh.spawner
-rm $(DESTDIR)$(bindir)/slurm.env
-rm $(DESTDIR)$(bindir)/gaspi_cleanup
-rm -fr $(prefix)/tests/