From 081fe1c816c2467073aa957615b12505b8e2378b Mon Sep 17 00:00:00 2001 From: Huang Rui Date: Sat, 18 Jan 2020 13:24:53 +0800 Subject: [PATCH] [1/20]vvp/Makefile.in:fix install timestamp check Fix bug: https://bugs.gentoo.org/705412 Fix bug: https://github.com/gentoo/gentoo/pull/14096 Related: https://github.com/steveicarus/iverilog/pull/294 Signed-off-by: Huang Rui --- vvp/Makefile.in | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/vvp/Makefile.in b/vvp/Makefile.in index 8d5724abb..709d64456 100644 --- a/vvp/Makefile.in +++ b/vvp/Makefile.in @@ -162,18 +162,18 @@ vvp.pdf: vvp.ps ifeq (@MINGW32@,yes) ifeq ($(MAN),none) -INSTALL_DOC = $(mandir)/man1/vvp$(suffix).1 +INSTALL_DOC = installman else ifeq ($(PS2PDF),none) -INSTALL_DOC = $(mandir)/man1/vvp$(suffix).1 +INSTALL_DOC = installman else -INSTALL_DOC = $(prefix)/vvp$(suffix).pdf $(mandir)/man1/vvp$(suffix).1 +INSTALL_DOC = installpdf installman all: vvp.pdf endif endif INSTALL_DOCDIR = $(mandir)/man1 else -INSTALL_DOC = $(mandir)/man1/vvp$(suffix).1 +INSTALL_DOC = installman INSTALL_DOCDIR = $(mandir)/man1 endif @@ -182,17 +182,19 @@ stamp-config-h: $(srcdir)/config.h.in ../config.status cd ..; ./config.status --header=vvp/config.h config.h: stamp-config-h -install: all installdirs $(bindir)/vvp$(suffix)@EXEEXT@ $(INSTALL_DOC) +install: all installdirs installfiles -$(bindir)/vvp$(suffix)@EXEEXT@: ./vvp@EXEEXT@ - $(INSTALL_PROGRAM) ./vvp@EXEEXT@ "$(DESTDIR)$(bindir)/vvp$(suffix)@EXEEXT@" +F = ./vvp@EXEEXT@ $(INSTALL_DOC) -$(mandir)/man1/vvp$(suffix).1: vvp.man +installman: installdirs $(INSTALL_DATA) vvp.man "$(DESTDIR)$(mandir)/man1/vvp$(suffix).1" -$(prefix)/vvp$(suffix).pdf: vvp.pdf +installpdf: installdirs $(INSTALL_DATA) vvp.pdf "$(DESTDIR)$(prefix)/vvp$(suffix).pdf" +installfiles: $(F) installdirs + $(INSTALL_PROGRAM) ./vvp@EXEEXT@ "$(DESTDIR)$(bindir)/vvp$(suffix)@EXEEXT@" + installdirs: $(srcdir)/../mkinstalldirs $(srcdir)/../mkinstalldirs "$(DESTDIR)$(bindir)" "$(DESTDIR)$(libdir)" "$(DESTDIR)$(INSTALL_DOCDIR)"