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

build: Don't leave an empty gperf.1 on disk if help2man fails.

* doc/Makefile.in (gperf.1): Use a temporary file.
(clean): Remove this temporary file.
This commit is contained in:
Bruno Haible
2024-07-22 01:52:42 +02:00
parent 5e4394dfcb
commit 043d5ea719
2 changed files with 9 additions and 2 deletions

View File

@@ -1,3 +1,9 @@
2024-07-21 Bruno Haible <bruno@clisp.org>
build: Don't leave an empty gperf.1 on disk if help2man fails.
* doc/Makefile.in (gperf.1): Use a temporary file.
(clean): Remove this temporary file.
2024-07-21 Bruno Haible <bruno@clisp.org> 2024-07-21 Bruno Haible <bruno@clisp.org>
build: Fix VPATH builds. build: Fix VPATH builds.

View File

@@ -114,7 +114,8 @@ gperf_0.html : $(srcdir)/gperf.texi $(srcdir)/gpl-3.0.texi
man : gperf.1 man : gperf.1
gperf.1 gperf.1-update : gperf.1 gperf.1-update :
$(srcdir)/help2man --name='generate a perfect hash function from a key set' --section=1 ../src/gperf > $(srcdir)/gperf.1 $(srcdir)/help2man --name='generate a perfect hash function from a key set' --section=1 ../src/gperf > gperf.1-t \
&& mv gperf.1-t $(srcdir)/gperf.1
gperf.1-update : force gperf.1-update : force
@@ -154,7 +155,7 @@ check : all
mostlyclean : clean mostlyclean : clean
clean : force clean : force
$(RM) *~ *.aux *.toc *.cp *.fn *.ky *.pg *.tp *.vr *.my *.log *.cps core $(RM) *~ *.aux *.toc *.cp *.fn *.ky *.pg *.tp *.vr *.my *.log *.cps gperf.1-t core
distclean : clean distclean : clean
$(RM) config.status config.log config.cache Makefile $(RM) config.status config.log config.cache Makefile