-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile.am
115 lines (100 loc) · 3.7 KB
/
Makefile.am
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
# 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_LIBGNU
SUBDIRS += lib
endif LDADD_LIBGNU
SUBDIRS += src po doc testsuite
EXTRA_DIST = \
autogen.sh \
m4/gnulib-cache.m4 \
m4/gnulib-tool.m4 \
include/pathmax.h \
include/argmax.h \
po/POTFILES-noregex.in \
po/POTFILES-regex.in \
testsuite/atlocal.in \
BUGS \
doc/ed.1 \
doc/bwk/tmac/refer.tmac \
doc/bwk/tmac/refer-ms.tmac \
LICENSES \
.reuse \
lib/patch-Makefile.am.diff \
ed.spec \
contrib
dist-hook:
if test -f $(destdir)/contrib/prdg/Makefile; then \
$(MAKE) -C $(destdir)/contrib/prdg distclean; \
fi
if test -f $(destdir)/contrib/call-graph/Makefile; then \
$(MAKE) -C $(destdir)/contrib/call-graph distclean; \
fi
HEAD_COMMIT = $(shell git rev-parse --short HEAD)
.PHONY: maintainer-update-dist update-testsuite-dist update-po
check-valgrind: clean
$(MAKE) $(AM_MAKEFLAGS) CFLAGS='-g -O0' \
-C $(abs_top_builddir) all
$(MAKE) -C $(abs_top_srcdir)/testsuite check-valgrind
maintainer-update-dist: update-gnulib update-po
spdx-sbom:
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; \
echo "*** Importing gnulib modules ***"; \
if test -f lib/regex.h; then \
rm -f lib/regex.h; \
fi; \
"$(gnulib_srcdir)/gnulib-tool" --import \
--dir=$($top_srcdir) \
--lib=libgnu \
--source-base=lib \
--m4-base=m4 \
--po-base=po \
--doc-base=doc \
--tests-base=tests \
--aux-dir=$(top_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
distclean-local:
rm -f configure.orig GPATH GRTAGS GSYMS GTAGS
rm -rf .cache
find . -name '[Tt][Aa][Gg][Ss]' -type f -delete
find . \( -name '*~' -or -name '#*#' \) -type f -delete
if test -f $(top_builddir)/testsuite/Makefile; then \
$(MAKE) -C $(top_builddir)/testsuite distclean; \
fi
rm -f po/POTFILES.in