-
Notifications
You must be signed in to change notification settings - Fork 41
/
Makefile.am
97 lines (80 loc) · 2.99 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
85
86
87
88
89
90
91
92
93
94
95
96
ACLOCAL_AMFLAGS=-I config
SUBDIRS = src utils tests
if HAVE_MPI
SUBDIRS += examples
endif
EXTRA_DIST = runconf \
README.md \
KNOWN_BUGS \
adios_config.makesrc.in \
adios_config.flags.makesrc.in \
adios_config.flags.cmake \
scripts/create.nssi.config.sh \
scripts/kill.nssi.staging.sh \
scripts/start.nssi.staging.sh \
scripts/FindADIOS.cmake \
src/mxml/cmake_try_longlong.c
# wrappers/matlab/Makefile \
# wrappers/matlab/adios.m \
# wrappers/matlab/adiosclose.m \
# wrappers/matlab/adiosopen.m \
# wrappers/matlab/adiosread.m \
# wrappers/matlab/adiosclosec.c \
# wrappers/matlab/adiosopenc.c \
# wrappers/matlab/adiosreadc.c
bin_SCRIPTS = adios_config
if HAVE_NSSI
bin_SCRIPTS += scripts/create.nssi.config.sh \
scripts/kill.nssi.staging.sh \
scripts/start.nssi.staging.sh
endif
sysconf_DATA = scripts/FindADIOS.cmake
#install-data-hook:
# echo -n "VERSIONSTRING=\"$(PACKAGE) version $(VERSION) svn revision " >> adios_config.flags
# if type svnversion &>/dev/null; then \
# echo `svnversion`\" >> adios_config.flags; \
# else \
# echo "unknown\"" >> adios_config.flags; \
# echo "Error: svnversion command not found"; \
# fi
# cp adios_config.flags $(DESTDIR)$(bindir)
install-data-hook:
(cd $(top_srcdir); \
if git rev-parse &>/dev/null; then \
echo "GITLOG=\"`git log -n 1 --format=\"Last commit on %ad hash %h\"`\"" > $(abs_top_builddir)/adios_git_status; \
echo "read -d '' GITSTAT <<'_EOF_'" >> $(abs_top_builddir)/adios_git_status; \
git status -uno >> $(abs_top_builddir)/adios_git_status; \
echo "_EOF_" >> $(abs_top_builddir)/adios_git_status; \
else \
echo "GITLOG=\"git log not available\"" >> $(abs_top_builddir)/adios_git_status; \
echo "GITSTAT=\"git status not available\"" >> $(abs_top_builddir)/adios_git_status; \
echo "Note: git command not found or $(PWD) is not a git repository."; \
fi)
$(INSTALL_DATA) adios_config.flags $(DESTDIR)$(sysconfdir)
$(INSTALL_DATA) adios_git_status $(DESTDIR)$(sysconfdir)
CLEANFILES = adios_config adios_config.flags adios_config.makesrc adios_config.flags.makesrc
#
# Extra targets to generate adios_config and adios_config.flags
#
edit = sed \
-e 's|%libdir[%]|$(libdir)|g' \
-e 's|%includedir[%]|$(includedir)|g' \
-e 's|%sysconfdir[%]|$(sysconfdir)|g' \
-e 's|%prefix[%]|$(prefix)|g' \
-e 's|%VERSION[%]|$(VERSION)|g' \
-e 's|%srcdir[%]|$(abs_top_srcdir)|g' \
-e 's|%builddir[%]|$(abs_top_builddir)|g'
adios_config adios_config.flags: Makefile
rm -f $@ [email protected]
test -f ./[email protected]; \
$(edit) [email protected] >[email protected]
chmod +x [email protected]
chmod a-w [email protected]
mv [email protected] $@
adios_config: adios_config.makesrc adios_config.flags
adios_config.flags: adios_config.flags.makesrc
README: README.md
cat $< > $@
dist-hook:
rm -f README
rm -f $(distdir)/README