From af152bec3206b02a2f73dd9e9dd0d92c10aa68aa Mon Sep 17 00:00:00 2001 From: Huang Rui Date: Sat, 18 Jan 2020 14:30:02 +0800 Subject: [PATCH] [8/20]tgt-stub/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 --- tgt-stub/Makefile.in | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/tgt-stub/Makefile.in b/tgt-stub/Makefile.in index f00597ae3..8be486b2d 100644 --- a/tgt-stub/Makefile.in +++ b/tgt-stub/Makefile.in @@ -82,17 +82,16 @@ endif stub.tgt: $O $(TGTDEPLIBS) $(CC) @shared@ $(LDFLAGS) -o $@ $O $(TGTLDFLAGS) -install: all installdirs $(libdir)/ivl$(suffix)/stub.tgt \ - $(libdir)/ivl$(suffix)/stub.conf $(libdir)/ivl$(suffix)/stub-s.conf +install: all installdirs installfiles -$(libdir)/ivl$(suffix)/stub.tgt: ./stub.tgt +F = ./stub.tgt \ + ./stub.conf \ + ./stub-s.conf + +installfiles: $(F) installdirs $(INSTALL_PROGRAM) ./stub.tgt "$(DESTDIR)$(libdir)/ivl$(suffix)/stub.tgt" - -$(libdir)/ivl$(suffix)/stub.conf: stub.conf - $(INSTALL_DATA) $< "$(DESTDIR)$(libdir)/ivl$(suffix)/stub.conf" - -$(libdir)/ivl$(suffix)/stub-s.conf: stub-s.conf - $(INSTALL_DATA) $< "$(DESTDIR)$(libdir)/ivl$(suffix)/stub-s.conf" + $(INSTALL_DATA) ./stub.conf "$(DESTDIR)$(libdir)/ivl$(suffix)/stub.conf" + $(INSTALL_DATA) ./stub-s.conf "$(DESTDIR)$(libdir)/ivl$(suffix)/stub-s.conf" installdirs: $(srcdir)/../mkinstalldirs $(srcdir)/../mkinstalldirs "$(DESTDIR)$(libdir)/ivl$(suffix)"