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:
16
Makefile.in
16
Makefile.in
@@ -1,6 +1,6 @@
|
||||
# Makefile for gperf
|
||||
|
||||
# Copyright (C) 1989, 1992-1993, 1998, 2012, 2016, 2018, 2020, 2022 Free Software Foundation, Inc.
|
||||
# Copyright (C) 1989, 1992-1993, 1998, 2012, 2016, 2018, 2020, 2022, 2024 Free Software Foundation, Inc.
|
||||
# Written by Douglas C. Schmidt <schmidt@ics.uci.edu>
|
||||
# and Bruno Haible <bruno@clisp.org>.
|
||||
#
|
||||
@@ -21,6 +21,9 @@
|
||||
|
||||
#### Start of system configuration section. ####
|
||||
|
||||
# Directories used by "make":
|
||||
srcdir = @srcdir@
|
||||
|
||||
# Programs used by "make":
|
||||
RM = rm -f
|
||||
@SET_MAKE@
|
||||
@@ -29,6 +32,8 @@ RM = rm -f
|
||||
|
||||
SHELL = /bin/sh
|
||||
|
||||
VPATH = $(srcdir)
|
||||
|
||||
all : force
|
||||
cd @subdir@; $(MAKE) all
|
||||
|
||||
@@ -87,7 +92,7 @@ distdir : $(DISTFILES)
|
||||
|
||||
# Creating a distribution tarball.
|
||||
PACKAGE = gperf
|
||||
VERSION = `sed -n -e 's/.*version_string = "\(.*\)".*/\1/p' < src/version.cc`
|
||||
VERSION = `sed -n -e 's/.*version_string = "\(.*\)".*/\1/p' < $(srcdir)/src/version.cc`
|
||||
TAR = tar
|
||||
GZIP = gzip
|
||||
|
||||
@@ -101,5 +106,12 @@ dist : force
|
||||
&& $(GZIP) -9 $$tmpdistdir.tar \
|
||||
&& rm -rf $$tmpdistdir
|
||||
|
||||
# Ensure that the manual page is up-to-date when "make dist" runs.
|
||||
dist : doc/gperf.1
|
||||
doc/gperf.1: $(srcdir)/src/options.cc
|
||||
(cd lib && $(MAKE)) \
|
||||
&& (cd src && $(MAKE) gperf$(EXEEXT)) \
|
||||
&& (cd doc && $(MAKE) gperf.1)
|
||||
|
||||
force :
|
||||
|
||||
|
||||
Reference in New Issue
Block a user