forked from trotter-suzuki-mpi/trotter-suzuki-mpi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.in
81 lines (65 loc) · 2.1 KB
/
Makefile.in
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
# @configure_input@
# Package-related substitution variables
package = @PACKAGE_NAME@
version = @PACKAGE_VERSION@
tarname = @PACKAGE_TARNAME@
distdir = $(tarname)-$(version)
# Prefix-related substitution variables
prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
# VPATH-related substitution variables
srcdir = @srcdir@
VPATH = @srcdir@
all:
$(MAKE) -C src $@
clean:
$(MAKE) -C src $@
$(MAKE) -C examples $@
$(MAKE) -C test $@
install uninstall lib python python_clean python_install:
$(MAKE) -C src $@
example:
$(MAKE) -C examples $@
check test: lib
$(MAKE) -C test $@
dist: $(distdir).tar.gz
$(distdir).tar.gz: FORCE $(distdir)
tar chf - $(distdir) | gzip -9 -c >$(distdir).tar.gz
rm -rf $(distdir)
$(distdir):
mkdir -p $(distdir)/doc
mkdir -p $(distdir)/examples
mkdir -p $(distdir)/src
mkdir -p $(distdir)/src/Python
mkdir -p $(distdir)/src/windows
mkdir -p $(distdir)/src/windows/trotter
mkdir -p $(distdir)/test
cp $(srcdir)/configure $(distdir)
cp $(srcdir)/config.h.in $(distdir)
cp $(srcdir)/install-sh $(distdir)
cp $(srcdir)/Makefile.in $(distdir)
cp $(srcdir)/README.md $(distdir)
cp $(srcdir)/COPYING $(distdir)
cp -R $(srcdir)/doc/* $(distdir)/doc/
cp $(srcdir)/examples/Makefile.in $(srcdir)/examples/*cpp $(distdir)/examples
cp $(srcdir)/src/Makefile.in $(distdir)/src
cp $(srcdir)/src/*.c* $(srcdir)/src/*.h $(distdir)/src
cp -R $(srcdir)/src/Python/* $(distdir)/src/Python
cp $(srcdir)/src/windows/trotter/* $(distdir)/src/windows/trotter
cp $(srcdir)/test/*.c* $(srcdir)/test/*.h $(srcdir)/test/Makefile.in $(distdir)/test
distcheck: $(distdir).tar.gz
gzip -cd $+ | tar xvf -
$(MAKE) -C $(distdir) all check
$(MAKE) -C $(distdir) DESTDIR=$${PWD}/$(distdir)/_inst install uninstall
$(MAKE) -C $(distdir) clean
rm -rf $(distdir)
@echo "*** Package $(distdir).tar.gz is ready for distribution."
Makefile: Makefile.in config.status
./config.status $@
config.status: configure
./config.status --recheck
FORCE:
-rm -rf $(distdir) &>/dev/null
-rm -rf $(distdir).tar.gz &>/dev/null
.PHONY: FORCE all clean check dist distcheck install uninstall test