Patch for DESTDIR support in mmalloc/Makefile.in
Pierre Sarrazin
sarrazip@sympatico.ca
Thu Dec 19 05:02:00 GMT 2002
The HEAD branch of the CVS sources of GDB does not support the
DESTDIR variable. I have attached a patch that fixes the 'install'
target in <mmalloc/Makefile.in>.
The next directory to fix would be <opcodes/po>. I tried, but
the $(DESTDIR) expressions that I insert in Makefile.in disappear.
Something overwrites that Makefile.in, but there is no Makefile.am.
I haven't tried to understand what magic happens there.
See also PR 681.
--
Pierre Sarrazin <sarrazip @ sympatico . ca>
-------------- next part --------------
Index: mmalloc/Makefile.in
===================================================================
RCS file: /cvs/src/src/mmalloc/Makefile.in,v
retrieving revision 1.5
diff -u -r1.5 Makefile.in
--- mmalloc/Makefile.in 28 Nov 2002 16:46:31 -0000 1.5
+++ mmalloc/Makefile.in 19 Dec 2002 12:55:07 -0000
@@ -156,9 +156,9 @@
# ./a.out
install: all install-info
- $(INSTALL_DATA) $(TARGETLIB) $(libdir)/$(TARGETLIB)n
- $(RANLIB) $(libdir)/$(TARGETLIB)n
- mv -f $(libdir)/$(TARGETLIB)n $(libdir)/$(TARGETLIB)
+ $(INSTALL_DATA) $(TARGETLIB) $(DESTDIR)$(libdir)/$(TARGETLIB)n
+ $(RANLIB) $(DESTDIR)$(libdir)/$(TARGETLIB)n
+ mv -f $(DESTDIR)$(libdir)/$(TARGETLIB)n $(DESTDIR)$(libdir)/$(TARGETLIB)
uninstall: uninstall-info
More information about the Gdb
mailing list