public inbox for dwz@sourceware.org
 help / color / mirror / Atom feed
* [committed] Fix installation of man page from separate builddir
@ 2019-01-01  0:00 Tom de Vries
  0 siblings, 0 replies; only message in thread
From: Tom de Vries @ 2019-01-01  0:00 UTC (permalink / raw)
  To: dwz, jakub; +Cc: Matthias Klose

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  <doko@debian.org>
	    Tom de Vries  <tdevries@suse.de>

	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
 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-07-02 13:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-01  0:00 [committed] Fix installation of man page from separate builddir Tom de Vries

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).