-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathMakefile.am
More file actions
133 lines (115 loc) · 3.98 KB
/
Copy pathMakefile.am
File metadata and controls
133 lines (115 loc) · 3.98 KB
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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
# Makefile.am: Top-level automake template for the ed line editor.
#
# Process this file with automake to create Makefile.in
gnulib_srcdir ?= /opt/src/savannah/gnulib
ACLOCAL_AMFLAGS = -I m4
SUBDIRS =
if LDADD_GNULIB
SUBDIRS += lib
endif LDADD_GNULIB
SUBDIRS += src po doc testsuite
EXTRA_DIST = \
BUGS \
LICENSES \
REUSE.toml \
autogen.sh \
contrib \
doc/ed.1 \
doc/bwk/tmac/refer.tmac \
doc/bwk/tmac/refer-ms.tmac \
ed.spec \
include/pathmax.h \
include/argmax.h \
lib/patch-Makefile.am.diff \
m4 \
pkgs \
po/POTFILES-noregex.in \
po/POTFILES-regex.in
HEAD_COMMIT = $(shell git rev-parse --short HEAD)
.PHONY: check-valgrind maintainer-update-dist update-testsuite-dist update-po
%-deb:
$(MAKE) -C $(builddir)/pkgs $@
%-rpm:
$(MAKE) -C $(builddir)/pkgs $@
check-valgrind: clean
$(MAKE) $(AM_MAKEFLAGS) CFLAGS='-g -O0' \
-C $(builddir) all
$(MAKE) -C $(builddir)/testsuite check-valgrind
spdx-sbom: REUSE.toml
@if ! command -v reuse >/dev/null; then \
echo 'reuse: Command not found' >&2; \
echo 'Please verify installation of REUSE, e.g.:' >&2; \
echo ' pip install -U reuse' >&2; \
exit 1; \
fi
reuse --suppress-deprecation spdx > $(PACKAGE)-$(VERSION).spdx
update-gnulib:
@if test ! -x $(gnulib_srcdir)/gnulib-tool; then \
echo "gnulib-tool: No such file or directory."; \
exit; \
else \
echo "*** Refreshing gnulib sources ***"; \
fi
git -C "$(gnulib_srcdir)" pull
@if test -f lib/regex.h; then \
rm -f lib/regex.h; \
fi
@if test -f lib/dynarray.h; then \
rm -f lib/dynarray.h; \
fi
@if test -f lib/malloc/dynarray.h; then \
rm -f lib/malloc/dynarray.h; \
fi
@echo "*** Importing gnulib modules ***"; \
"$(gnulib_srcdir)/gnulib-tool" --import \
--dir=$(srcdir) \
--lib=libgnu \
--source-base=lib \
--m4-base=m4 \
--po-base=po \
--doc-base=doc \
--tests-base=tests \
--aux-dir=$(srcdir) \
--conditional-dependencies \
--no-libtool \
--macro-prefix=gl \
--po-domain=ed \
getopt-gnu \
regex
@if test -f lib/regex.h; then \
echo "*** Moving lib/regex.h => lib/regex.h.in ***"; \
mv lib/regex.h lib/regex.h.in; \
fi
@if test -f lib/dynarray.h; then \
echo "*** Moving lib/dynarray.h => lib/dynarray.h.in ***"; \
mv lib/dynarray.h lib/dynarray.h.in; \
fi
@if test -f lib/malloc/dynarray.h; then \
echo "*** Moving lib/malloc/dynarray.h => lib/malloc/dynarray.h.in ***"; \
mv lib/malloc/dynarray.h lib/malloc/dynarray.h.in; \
fi
@if test -f lib/patch-Makefile.am.diff; then \
echo "*** Patching refreshed lib/Makefile.am ***"; \
patch lib/Makefile.am lib/patch-Makefile.am.diff; \
fi
@echo "*** Running autogen.sh ***"; \
./autogen.sh --silent
update-po:
-$(MAKE) -C po $(AM_MAKEFLAGS) update-po
maintainer-update-dist: update-gnulib update-po
clean-local:
rm -f $(PACKAGE)-$(VERSION).spdx
find . \( -name GPATH -o -name GRTAGS -o -name GSYMS \
-o -name GTAGS -o -name '[Tt][Aa][Gg][Ss]' \
-o -name '*~' -o -name '#*#' \) \
-type f -exec rm -f {} \+
find . -name '.deps' -type d -exec rm -rf {} \+
$(MAKE) -C contrib clean
$(MAKE) -C pkgs clean
distclean-local: clean-local
$(MAKE) -C contrib distclean
$(MAKE) -C pkgs distclean
rm -rf Makefile config.h config.log config.status libtool \
${top_srcdir}/po/POTFILES.in ${top_srcdir}/po/*.gmo stamp-h1
am-refresh:
@./autogen.sh --silent