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:
@@ -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 :
|
||||
|
||||
|
||||
Reference in New Issue
Block a user