forked from slewsys/ed
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
91 lines (77 loc) · 3.01 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
# Makefile.am: Top-level automake template for the ed line editor.
#
# Copyright © 1993-2018 Andrew L. Moore, SlewSys Research
#
# 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 = m4/gnulib-cache.m4 include/pathmax.h include/argmax.h
HEAD_COMMIT = $(shell git rev-parse --short HEAD)
.PHONY: quick-check maintainer-update-dist update-testsuite-dist update-po
quick-check: all
cd $(top_builddir)/testsuite && $(MAKE) $(AM_MAKEFLAGS) $@
# dist:
# git archive --format=tar --prefix=$(PACKAGE)-$(VERSION)/ HEAD | \
# gzip >../ed-$(VERSION)~g$(HEAD_COMMIT).tgz
maintainer-update-dist: update-gnulib update-po
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
rm -rf GPATH GRTAGS GSYMS GTAGS
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