mirror of
https://git.savannah.gnu.org/git/gperf.git
synced 2025-12-02 13:09:22 +00:00
Turn doc/gperf.1 into a distributed built file.
This commit is contained in:
@@ -63,7 +63,7 @@ SHELL = /bin/sh
|
||||
|
||||
VPATH = $(srcdir)
|
||||
|
||||
all : info ps pdf html
|
||||
all : info ps pdf html man
|
||||
|
||||
|
||||
info : $(srcdir)/gperf.info
|
||||
@@ -104,6 +104,14 @@ gperf_toc.html : $(srcdir)/gperf.texi $(srcdir)/gpl-3.0.texi
|
||||
cd $(srcdir) && $(TEXI2HTML) -number -split_chapter gperf.texi
|
||||
|
||||
|
||||
man : gperf.1
|
||||
|
||||
gperf.1 gperf.1-update :
|
||||
./help2man --name='generate a perfect hash function from a key set' --section=1 ../src/gperf > gperf.1
|
||||
|
||||
gperf.1-update : force
|
||||
|
||||
|
||||
install : all force
|
||||
$(MKINSTALLDIRS) $(DESTDIR)$(infodir)
|
||||
$(INSTALL_DATA) $(srcdir)/gperf.info $(DESTDIR)$(infodir)/gperf.info
|
||||
@@ -158,8 +166,7 @@ IMPORTED_FILES = \
|
||||
help2man
|
||||
# List of distributed files generated by autotools or Makefile.devel.
|
||||
GENERATED_FILES = \
|
||||
configure \
|
||||
gperf.1
|
||||
configure
|
||||
# List of distributed files generated by "make".
|
||||
DISTRIBUTED_BUILT_FILES = \
|
||||
gperf.info \
|
||||
@@ -167,11 +174,12 @@ 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_[0-9].html gperf_[0-9][0-9].html \
|
||||
gperf.1
|
||||
# List of distributed files.
|
||||
DISTFILES = $(SOURCE_FILES) $(IMPORTED_FILES) $(GENERATED_FILES) $(DISTRIBUTED_BUILT_FILES)
|
||||
|
||||
distdir : $(DISTFILES)
|
||||
distdir : gperf.1-update $(DISTFILES)
|
||||
for file in $(DISTFILES); do \
|
||||
if test -f $$file; then dir='.'; else dir='$(srcdir)'; fi; \
|
||||
cp -p $$dir/$$file '$(distdir)'/$$file || exit 1; \
|
||||
|
||||
Reference in New Issue
Block a user