File: Makefile.am

package info (click to toggle)
adios 1.13.1-16
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid
  • size: 23,248 kB
  • sloc: ansic: 133,236; f90: 8,791; sh: 7,806; python: 7,480; xml: 3,793; makefile: 3,002; cpp: 2,340; java: 626; sed: 16; perl: 8
file content (96 lines) | stat: -rw-r--r-- 2,938 bytes parent folder | download | duplicates (2)
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 \
	     adios.pc \
             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 =

#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) 
 
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 $@ $@.tmp
	test -f ./$@.makesrc; \
	$(edit) $@.makesrc >$@.tmp
	
	chmod +x $@.tmp
	chmod a-w $@.tmp
	mv $@.tmp $@

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