gdb/
authorH.J. Lu <hjl.tools@gmail.com>
Fri, 8 Aug 2003 17:30:37 +0000 (17:30 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Fri, 8 Aug 2003 17:30:37 +0000 (17:30 +0000)
2003-08-08  H.J. Lu  <hongjiu.lu@intel.com>

* Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
(install-only): Support DESTDIR.
(uninstall): Likewise.
(install-gdbtk): Likewise.

gdb/doc/

2003-08-08  H.J. Lu  <hongjiu.lu@intel.com>

* Makefile.in (install-info): Support DESTDIR.
(install-html): Likewise.

gdb/gdbserver/

2003-08-08  H.J. Lu  <hongjiu.lu@intel.com>

* Makefile.in (install-only): Create dest dir. Support DESTDIR.
(uninstall): Support DESTDIR.

mmalloc/

2003-08-08  H.J. Lu  <hongjiu.lu@intel.com>

* Makefile.in (install-info): Create dest dir. Support DESTDIR.
(install): Likewise.

gdb/ChangeLog
gdb/Makefile.in
gdb/doc/ChangeLog
gdb/doc/Makefile.in
gdb/gdbserver/ChangeLog
gdb/gdbserver/Makefile.in
mmalloc/ChangeLog
mmalloc/Makefile.in

index 939eb219beea3eccbc7f4b8d5017830eee284930..c7685fba75964875f0f6096cf184ca88a99cad21 100644 (file)
@@ -1,3 +1,10 @@
+2003-08-08  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
+       (install-only): Support DESTDIR.
+       (uninstall): Likewise.
+       (install-gdbtk): Likewise.
+
 2003-08-08  Elena Zannoni  <ezannoni@redhat.com>
 
        * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
index 3299c9741a8be5e9b7528cd12f050d0ea68dad46..25d054e12f3e6970f1cba498138f1d3b6dcfe2f7 100644 (file)
@@ -430,6 +430,7 @@ FLAGS_TO_PASS = \
        "datadir=$(datadir)" \
        "includedir=$(includedir)" \
        "against=$(against)" \
+       "DESTDIR=$(DESTDIR)" \
        "AR=$(AR)" \
        "AR_FLAGS=$(AR_FLAGS)" \
        "CC=$(CC)" \
@@ -963,7 +964,7 @@ install-only: $(CONFIG_INSTALL)
                else \
                  true ; \
                fi ; \
-               $(SHELL) $(srcdir)/../mkinstalldirs $(bindir) ; \
+               $(SHELL) $(srcdir)/../mkinstalldirs $(DESTDIR)$(bindir) ; \
                $(INSTALL_PROGRAM) gdb$(EXEEXT) \
                        $(DESTDIR)$(bindir)/$$transformed_name$(EXEEXT) ; \
                $(SHELL) $(srcdir)/../mkinstalldirs \
@@ -980,7 +981,8 @@ uninstall: force $(CONFIG_UNINSTALL)
                else \
                  true ; \
                fi ; \
-               rm -f $(bindir)/$$transformed_name$(EXEEXT) $(man1dir)/$$transformed_name.1
+               rm -f $(DESTDIR)$(bindir)/$$transformed_name$(EXEEXT) \
+                     $(DESTDIR)$(man1dir)/$$transformed_name.1
        @$(MAKE) DO=uninstall "DODIRS=$(SUBDIRS)" $(FLAGS_TO_PASS) subdir_do 
 
 # We do this by grepping through sources.  If that turns out to be too slow,
@@ -2471,7 +2473,7 @@ install-gdbtk:
        else \
          true ; \
        fi ; \
-       $(SHELL) $(srcdir)/../mkinstalldirs $(bindir); \
+       $(SHELL) $(srcdir)/../mkinstalldirs $(DESTDIR)$(bindir); \
        $(INSTALL_PROGRAM) insight$(EXEEXT) \
                $(DESTDIR)$(bindir)/$$transformed_name$(EXEEXT) ; \
        $(SHELL) $(srcdir)/../mkinstalldirs \
index 8ddd72334ab2ec65a7512afd853d62c472727032..14e3887b5ab8545939013cad0eaa76ef1f025b10 100644 (file)
@@ -1,3 +1,8 @@
+2003-08-08  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * Makefile.in (install-info): Support DESTDIR.
+       (install-html): Likewise.
+
 2003-08-07  Andrew Cagney  <cagney@redhat.com>
 
        Patch from Nick Roberts.
index 4e8c64ea81772522edca54b856d7107273212cb1..a06cc4ac711ed687d27e3c75d30a53bc12f1f404 100644 (file)
@@ -156,14 +156,14 @@ all-doc: info dvi ps # pdf
 diststuff: info
 
 install-info: $(INFO_DEPS)
-       $(SHELL) $(srcdir)/../../mkinstalldirs $(infodir)
+       $(SHELL) $(srcdir)/../../mkinstalldirs $(DESTDIR)$(infodir)
        @list='$(INFO_DEPS)'; \
        for file in $$list; do \
          if test -f $$file; then d=.; else d=$(srcdir); fi; \
          for ifile in `cd $$d && echo $$file $$file-[0-9] $$file-[0-9][0-9]`; do \
            if test -f $$d/$$ifile; then \
-             echo " $(INSTALL_DATA) $$d/$$ifile $(infodir)/$$ifile"; \
-             $(INSTALL_DATA) $$d/$$ifile $(infodir)/$$ifile; \
+             echo " $(INSTALL_DATA) $$d/$$ifile $(DESTDIR)$(infodir)/$$ifile"; \
+             $(INSTALL_DATA) $$d/$$ifile $(DESTDIR)$(infodir)/$$ifile; \
            else : ; fi; \
          done; \
        done
@@ -171,8 +171,8 @@ install-info: $(INFO_DEPS)
        @if $(SHELL) -c 'install-info --version | sed 1q | fgrep -s -v -i debian' >/dev/null 2>&1; then \
          list='$(INFO_DEPS)'; \
          for file in $$list; do \
-           echo " install-info --info-dir=$(infodir) $(infodir)/$$file";\
-           install-info --info-dir=$(infodir) $(infodir)/$$file || :;\
+           echo " install-info --info-dir=$(infodir) $(DESTDIR)$(infodir)/$$file";\
+           install-info --info-dir=$(infodir) $(DESTDIR)$(infodir)/$$file || :;\
          done; \
        else : ; fi
 
@@ -194,7 +194,7 @@ uninstall-info:
 
 install-html: html
        for i in *.html ; do \
-               $(INSTALL_DATA) $$i $(htmldir)/$$i ; \
+               $(INSTALL_DATA) $$i $(DESTDIR)$(htmldir)/$$i ; \
        done
 
 STAGESTUFF = *.info* gdb-all.texi GDBvn.texi *.ps *.dvi *.pdf
index 98c831280e2127b29c486791caa1fe08f9aca423..42dab168db6edd1b7a407bda4d4b40083164aa76 100644 (file)
@@ -1,3 +1,8 @@
+2003-08-08  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * Makefile.in (install-only): Create dest dir. Support DESTDIR.
+       (uninstall): Support DESTDIR.
+
 Mon Jul 21 20:09:34 UTC 2003  Brendan Conoboy  <blc@redhat.com>
 
        * configure.srv: Add xscale*linux copy of arm*linux entry.
index 80667f9c6ceaf0e9938ab8e27387eaca59fbe4f4..8554dae9afbf9f2c9d0f4c5ae6bf0904df56b035 100644 (file)
@@ -151,13 +151,15 @@ install: all install-only
 install-only: 
        n=`echo gdbserver | sed '$(program_transform_name)'`; \
        if [ x$$n = x ]; then n=gdbserver; else true; fi; \
-       $(INSTALL_PROGRAM) gdbserver $(bindir)/$$n; \
-       $(INSTALL_DATA) $(srcdir)/gdbserver.1 $(man1dir)/$$n.1
+       $(SHELL) $(srcdir)/../../mkinstalldirs $(DESTDIR)$(bindir); \
+       $(INSTALL_PROGRAM) gdbserver $(DESTDIR)$(bindir)/$$n; \
+       $(SHELL) $(srcdir)/../../mkinstalldirs $(DESTDIR)$(man1dir); \
+       $(INSTALL_DATA) $(srcdir)/gdbserver.1 $(DESTDIR)$(man1dir)/$$n.1
 
 uninstall: force
        n=`echo gdbserver | sed '$(program_transform_name)'`; \
        if [ x$$n = x ]; then n=gdbserver; else true; fi; \
-       rm -f $(bindir)/$$n $(man1dir)/$$n.1
+       rm -f $(bindir)/$$n $(DESTDIR)$(man1dir)/$$n.1
 
 installcheck:
 check:
index a46ca3666a468a66e35090843100fa1b72849eb5..a1e3ad0af074b2321093cd57b6a92509ec52828a 100644 (file)
@@ -1,3 +1,8 @@
+2003-08-08  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * Makefile.in (install-info): Create dest dir. Support DESTDIR.
+       (install): Likewise.
+
 2002-11-28  Elena Zannoni  <ezannoni@redhat.com>
 
        * Makefile.in (install): Move install-info to here...
index 06fbd9c383259a9dda9c9487fa7165d31f412baf..b05aea7b08c785971fabe8dd9160bb2dc156adab 100644 (file)
@@ -113,6 +113,7 @@ mmalloc.dvi: mmalloc.texi
        rm -f mmalloc.?? mmalloc.??s mmalloc.log mmalloc.aux mmalloc.toc
 
 install-info: info
+       $(SHELL) $(srcdir)/../mkinstalldirs $(DESTDIR)$(infodir)
        @list='$(INFO_DEPS)'; \
        for file in $$list; do \
          if test -f $$file; then d=.; else d=$(srcdir); fi; \
@@ -156,9 +157,10 @@ check: test1.c
 #      ./a.out
 
 install:       all install-info
-               $(INSTALL_DATA) $(TARGETLIB) $(libdir)/$(TARGETLIB)n
-               $(RANLIB) $(libdir)/$(TARGETLIB)n
-               mv -f $(libdir)/$(TARGETLIB)n $(libdir)/$(TARGETLIB)
+               $(SHELL) $(srcdir)/../mkinstalldirs $(DESTDIR)$(libdir)
+               $(INSTALL_DATA) $(TARGETLIB) $(DESTDIR)$(libdir)/$(TARGETLIB)n
+               $(RANLIB) $(DESTDIR)$(libdir)/$(TARGETLIB)n
+               mv -f $(DESTDIR)$(libdir)/$(TARGETLIB)n $(DESTDIR)$(libdir)/$(TARGETLIB)
 
 uninstall:     uninstall-info