forked from gvvaughan/bootstrap
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Makefile
64 lines (53 loc) · 1.79 KB
/
Makefile
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
## Makefile -- regenerate the bootstrap script
## Written by Gary V. Vaughan, 2014
##
## This is free software. There is NO warranty; not even for
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
##
## Copyright (C) 2014-2019, 2021, 2023-2024 Bootstrap Authors
##
## This file is dual licensed under the terms of the MIT license
## <https://opensource.org/licenses/MIT>, and GPL version 2 or later
## <https://www.gnu.org/licenses/gpl-2.0.html>. You must apply one of
## these licenses when using or redistributing this software or any of
## the files within it. See the URLs above, or the file `LICENSE`
## included in the Bootstrap distribution for the full license texts.
##
## Please report bugs or propose patches to:
## <https://github.com/gnulib-modules/bootstrap/issues>
#####
build_aux = build-aux
abs_aux_dir = $(shell pwd)/$(build_aux)
abs_srcdir = $(shell pwd)/tests
inline_source = $(build_aux)/inline-source
bootstrap_in = $(build_aux)/bootstrap.in
prog_SCRIPTS = bootstrap
bootstrap_SOURCES = \
$(bootstrap_in) \
$(build_aux)/extract-trace \
$(build_aux)/funclib.sh \
$(build_aux)/options-parser \
$(NOTHING_ELSE)
all: $(prog_SCRIPTS)
bootstrap: $(bootstrap_SOURCES)
'$(inline_source)' '$(bootstrap_in)' > '$@'
TESTS = \
test-funclib-quote.sh \
test-option-parser.sh \
$(NOTHING_ELSE)
check:
@result=: ; \
for t in $(TESTS); do \
echo "Running 'tests/$$t:'"; \
abs_aux_dir='$(abs_aux_dir)' abs_srcdir='$(abs_srcdir)' \
$(SHELL) tests/$$t || result=false; \
done ; \
$$result
# Bump the copyright dates, and re-generate the bootstrap script by running make.
update-copyright:
git grep -l Copyright | \
UPDATE_COPYRIGHT_HOLDER="Bootstrap Authors" \
UPDATE_COPYRIGHT_FORCE=1 \
UPDATE_COPYRIGHT_USE_INTERVALS=1 \
xargs $(UPDATE_COPYRIGHT_SCRIPT)
make