forked from BlockchainCommons/bc-shamir
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.in
107 lines (92 loc) · 2.57 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
# @configure_input@
#
# Makefile.in
#
# Copyright © 2020 by Blockchain Commons, LLC
# Licensed under the "BSD-2-Clause Plus Patent License"
#
# Package-specific substitution variables
package = @PACKAGE_NAME@
version = @PACKAGE_VERSION@
tarname = @PACKAGE_TARNAME@
distdir = $(tarname)-$(version)
tarball = $(distdir).tar.gz
# Prefix-specific substitution variables
prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
# VPATH-specific substitution variables
srcdir = @srcdir@
VPATH = @srcdir@
.PHONY: all clean
all clean:
cd src && $(MAKE) $@
cd test && $(MAKE) $@
.PHONY: lib install uninstall
lib install uninstall:
cd src && $(MAKE) $@
.PHONY: test check
test check:
cd test && $(MAKE) $@
.PHONY: dist
dist: $(tarball)
$(tarball): distdir
tar chof - $(distdir) | gzip -9 -c > $@
rm -rf $(distdir)
distdir: $(distdir)
$(distdir): FORCE
mkdir -p $(distdir)/src
mkdir -p $(distdir)/test
cp $(srcdir)/CLA.md $(distdir)
cp $(srcdir)/CODEOWNERS $(distdir)
cp $(srcdir)/CONTRIBUTING.md $(distdir)
cp $(srcdir)/LICENSE $(distdir)
cp $(srcdir)/README.md $(distdir)
cp -r $(srcdir)/CLA-signed $(distdir)
cp $(srcdir)/bootstrap.sh $(distdir)
cp $(srcdir)/configure.ac $(distdir)
cp $(srcdir)/configure $(distdir)
cp $(srcdir)/config.h.in $(distdir)
cp $(srcdir)/install-sh $(distdir)
cp $(srcdir)/Makefile.in $(distdir)
cp $(srcdir)/.gitignore $(distdir)
cp $(srcdir)/src/Makefile.in $(distdir)/src
cp $(srcdir)/src/*.c $(distdir)/src
cp $(srcdir)/src/*.h $(distdir)/src
cp $(srcdir)/test/Makefile.in $(distdir)/test
cp $(srcdir)/test/*.c $(distdir)/test
cp $(srcdir)/test/*.h $(distdir)/test
cp $(srcdir)/.gitignore $(distdir)/test
.PHONY: distcheck
distcheck: $(tarball)
gzip -cd $(tarball) | tar xvf -
cd $(distdir) && ./configure
cd $(distdir) && $(MAKE) all
cd $(distdir) && $(MAKE) check
cd $(distdir) && $(MAKE) DESTDIR=$${PWD}/_inst install
cd $(distdir) && $(MAKE) DESTDIR=$${PWD}/_inst uninstall
@remaining="`find $(distdir)/_inst -type f | wc -l`"; \
if test "$${remaining}" -ne 0; then \
echo "*** $${remaining} file(s) remaining in stage directory!"; \
exit 1; \
fi
cd $(distdir) && $(MAKE) clean
rm -rf $(distdir)
@echo "*** Package $(tarball) is ready for distribution."
.PHONY: FORCE
FORCE:
rm -f $(tarball)
rm -rf $(distdir)
config.status: configure
./config.status --recheck
.PHONY: distclean
distclean:
cd src && $(MAKE) $@
cd test && $(MAKE) $@
rm -f Makefile
rm -rf autom4te.cache
rm -f $(tarball)
rm -rf $(distdir)
rm -f autoscan.log
rm -f configure.scan configure.status config.log
rm -f config.log config.status config.h