From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 76130 invoked by alias); 2 Jul 2019 13:02:19 -0000 Mailing-List: contact dwz-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Post: List-Help: List-Subscribe: Sender: dwz-owner@sourceware.org Received: (qmail 76119 invoked by uid 89); 2 Jul 2019 13:02:19 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Checked: by ClamAV 0.100.3 on sourceware.org X-Virus-Found: No X-Spam-SWARE-Status: No, score=-24.6 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,SPF_PASS autolearn=ham version=3.3.1 spammy= X-Spam-Status: No, score=-24.6 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,SPF_PASS autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on sourceware.org X-Spam-Level: X-HELO: mx1.suse.de X-Virus-Scanned: by amavisd-new at test-mx.suse.de Date: Tue, 01 Jan 2019 00:00:00 -0000 From: Tom de Vries To: dwz@sourceware.org, jakub@redhat.com Cc: Matthias Klose Subject: [committed] Fix installation of man page from separate builddir Message-ID: <20190702130212.GA25489@delia> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) X-SW-Source: 2019-q3/txt/msg00013.txt.bz2 Hi, When doing make install in a separate build dir, we run into: ... $ make install DESTDIR=$(pwd -P)/../install make -f /data/dwz/dwz.git/Makefile srcdir=/data/dwz/dwz.git install make[1]: Entering directory '/data/dwz/build' install -D dwz /data/dwz/build/../install/usr/bin/dwz install -D -m 644 dwz.1 /data/dwz/build/../install/usr/share/man/man1/dwz.1 install: cannot stat 'dwz.1': No such file or directory make[1]: *** [/data/dwz/dwz.git/Makefile:19: install] Error 1 make[1]: Leaving directory '/data/dwz/build' make: *** [Makefile:7: install] Error 2 ... Fix this by prefixing dwz.1 with $(srcdir)/ in the install command. Committed to trunk. Thanks, - Tom Fix installation of man page from separate builddir 2019-07-02 Matthias Klose Tom de Vries PR dwz/24754 * Makefile: Prefixing dwz.1 with $(srcdir)/ in install command. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index b2a1fb1..534fc74 100644 --- a/Makefile +++ b/Makefile @@ -16,7 +16,7 @@ dwz: $(OBJECTS) $(CC) $(LDFLAGS) -o $@ $^ -lelf install: dwz install -D dwz $(DESTDIR)$(bindir)/dwz - install -D -m 644 dwz.1 $(DESTDIR)$(mandir)/man1/dwz.1 + install -D -m 644 $(srcdir)/dwz.1 $(DESTDIR)$(mandir)/man1/dwz.1 clean: rm -f $(OBJECTS) *~ core* dwz