1
0
mirror of https://git.savannah.gnu.org/git/gperf.git synced 2025-12-02 13:09:22 +00:00

build: Fix failure of "./configure; make dist".

* Makefile.in (srcdir, VPATH): New variables.
(VERSION): Refer to src/version.cc in $(srcdir).
(dist): Depend on doc/gperf.1.
(doc/gperf.1): New rule.
* doc/Makefile.in (DISTRIBUTED_BUILT_FILES): Remove wildcard patterns.
(DISTRIBUTED_BUILT_FILES_EXTRA_PATTERNS): New variable.
(distdir): Handle the files from DISTRIBUTED_BUILT_FILES_EXTRA_PATTERNS.
This commit is contained in:
Bruno Haible
2024-07-22 02:27:34 +02:00
parent 043d5ea719
commit 5d1c6f3e24
3 changed files with 32 additions and 3 deletions

View File

@@ -182,8 +182,11 @@ DISTRIBUTED_BUILT_FILES = \
gperf.ps \
gperf.pdf \
gperf.html \
gperf_toc.html gperf_[0-9].html gperf_[0-9][0-9].html \
gperf_toc.html \
gperf.1
# Other distributed files, generated together with $(DISTRIBUTED_BUILT_FILES).
DISTRIBUTED_BUILT_FILES_EXTRA_PATTERNS = \
$(srcdir)/gperf_[0-9].html $(srcdir)/gperf_[0-9][0-9].html
# List of distributed files.
DISTFILES = $(SOURCE_FILES) $(IMPORTED_FILES) $(GENERATED_FILES) $(DISTRIBUTED_BUILT_FILES)
@@ -192,6 +195,9 @@ distdir : gperf.1-update $(DISTFILES)
if test -f $$file; then dir='.'; else dir='$(srcdir)'; fi; \
cp -p $$dir/$$file '$(distdir)'/$$file || exit 1; \
done
for file in $(DISTRIBUTED_BUILT_FILES_EXTRA_PATTERNS); do \
cp -p $$file '$(distdir)'/ || exit 1; \
done
force :