diff options
author | Sergey Poznyakoff <gray@gnu.org> | 2019-07-10 16:47:11 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org> | 2019-07-10 16:47:11 +0300 |
commit | b06fb7d30415eec1d2efb39286ab96070c724fd4 (patch) | |
tree | 1c54b5707600d03d243c1e5c8a81a759345296d0 | |
parent | babd5c07d02cd240c8d0e01bdf2edfbef0c5774e (diff) | |
download | grecs-b06fb7d30415eec1d2efb39286ab96070c724fd4.tar.gz grecs-b06fb7d30415eec1d2efb39286ab96070c724fd4.tar.bz2 |
Distribute only needed parts of wordsplit
* Makefile.am (WORDSPLIT_SRC)
(WORDSPLIT_TEST,WORDSPLIT_DOC): New variables.
(EXTRA_DIST): Add WORDSPLIT_SRC (unconditionally) and @GRECS_EXTRA_DIST@
(gets set depending on whether docs and testsuite is required).
* am/grecs.m4: Set GRECS_EXTRA_DIST to $(WORDSPLIT_TEST) if testsuite
is required. Append to it $(WORDSPLIT_DOC) if documentation is
required as well.
-rw-r--r-- | Makefile.am | 9 | ||||
-rw-r--r-- | am/grecs.m4 | 3 |
2 files changed, 10 insertions, 2 deletions
diff --git a/Makefile.am b/Makefile.am index b8482a1..38c8782 100644 --- a/Makefile.am +++ b/Makefile.am @@ -18,5 +18,10 @@ ACLOCAL_AMFLAGS = -I am SUBDIRS=. include src @GRECS_TESTDIR@ @GRECS_DOCDIR@ + +# Wordsplit components. +WORDSPLIT_SRC = wordsplit/wordsplit.c wordsplit/wordsplit.h +WORDSPLIT_TEST = wordsplit/wordsplit.at wordsplit/wsp.c +WORDSPLIT_DOC = wordsplit/wordsplit.3 + EXTRA_DIST=build-aux/yyrename @GRECS_BUILD_AUX@ @GRECS_DISTDOC@ gitid.h\ - wordsplit/wordsplit.c wordsplit/wordsplit.h wordsplit/wordsplit.3 \ - wordsplit/wordsplit.at wordsplit/wsp.c + $(WORDSPLIT_SRC) @GRECS_EXTRA_DIST@ diff --git a/am/grecs.m4 b/am/grecs.m4 index 8bf3d21..f453079 100644 --- a/am/grecs.m4 +++ b/am/grecs.m4 @@ -157,2 +157,3 @@ AC_DEFUN([GRECS_SETUP],[ GRECS_TESTDIR=tests + GRECS_EXTRA_DIST='$(WORDSPLIT_TEST)' ]) @@ -199,2 +200,3 @@ AC_DEFUN([GRECS_SETUP],[ AC_SUBST([GRECS_TESTDIR]) + AC_SUBST([GRECS_EXTRA_DIST]) AC_SUBST([GRECS_LDADD]) @@ -215,2 +217,3 @@ AC_DEFUN([GRECS_SETUP],[ GRECS_DOCDIR='doc' + GRECS_EXTRA_DIST="${GRECS_EXTRA_DIST}${GRECS_EXTRA_DIST:+ }\$(WORDSPLIT_DOC)" GRECS_CHANGELOG= |