This is the mail archive of the binutils@sourceware.cygnus.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: [PATCH RFA] Clean up GDB's packaging, add support for dejagnu, insight, ...


Andrew Cagney wrote:

Sorry, I'll try that again.  It would be attatched....
(Kevin, thanks :-)

> Hello,
> 
> The attatched patch modifies the top level Makefile.in so that:
> 
>         o       the ``taz:'' / ``do-tar-bz2:'' targets
>                 build a PACKAGE instead of a TOOL.
>                 By default PACKAGE=$(TOOL)
>                 The PACKAGE determines the archive
>                 name while the TOOL determines the
>                 top level directory containing
>                 versioning etc.
> 
>         o       Removes GDBTK stuff from the GDB
>                 net relese
> 
>         o       adds rules to build ``dejagnu''
>                 ``gdb+dejagnu'' ``insight''
>                 and ``insight+dejagnu'' releases
> 
> Ok?

         Andrew
Fri Mar  3 18:44:08 2000  Andrew Cagney  <cagney@b1.cygnus.com>

	* Makefile.in (taz): Set PACKAGE to TOOL when not defined.
	(do-tar-bz2): Replace TOOL with PACKAGE.
	(gdb.tar.bz2): Remove GDBTK from GDB package.
	(gdb+dejagnu.tar.bz2, insight.tar.bz2, insight+dejagnu.tar.bz2,
 	dejagnu.tar.bz2): New packages.

Index: Makefile.in
===================================================================
RCS file: /cvs/src/src/Makefile.in,v
retrieving revision 1.8
diff -p -r1.8 Makefile.in
*** Makefile.in	2000/02/07 00:34:34	1.8
--- Makefile.in	2000/03/03 08:13:08
*************** taz: $(DEVO_SUPPORT) $(SUPPORT_FILES) te
*** 1747,1760 ****
  	else \
  	  ver=`sed <$(TOOL)/Makefile.in -n 's/^VERSION *= *//p'`; \
  	fi; \
! 	$(MAKE) -f Makefile.in do-tar-bz2 TOOL=$(TOOL) VER=$$ver
  
  do-tar-bz2:
! 	echo "==> Making $(TOOL)-$(VER).tar.bz2"
! 	-rm -f $(TOOL)-$(VER)
! 	ln -s proto-toplev $(TOOL)-$(VER)
! 	tar cfh $(TOOL)-$(VER).tar $(TOOL)-$(VER)
! 	$(BZIPPROG) -v -9 $(TOOL)-$(VER).tar
  
  TEXINFO_SUPPORT= texinfo/texinfo.tex
  DIST_SUPPORT= $(DEVO_SUPPORT) $(TEXINFO_SUPPORT)
--- 1747,1765 ----
  	else \
  	  ver=`sed <$(TOOL)/Makefile.in -n 's/^VERSION *= *//p'`; \
  	fi; \
! 	if test x"$(PACKAGE)" = x; then \
! 	  package="$(TOOL)"; \
! 	else \
! 	  package="$(PACKAGE)"; \
! 	fi; \
! 	$(MAKE) -f Makefile.in do-tar-bz2 TOOL=$(TOOL) VER=$$ver PACKAGE=$$package
  
  do-tar-bz2:
! 	echo "==> Making $(PACKAGE)-$(VER).tar.bz2"
! 	-rm -f $(PACKAGE)-$(VER)
! 	ln -s proto-toplev $(PACKAGE)-$(VER)
! 	tar cfh $(PACKAGE)-$(VER).tar $(PACKAGE)-$(VER)
! 	$(BZIPPROG) -v -9 $(PACKAGE)-$(VER).tar
  
  TEXINFO_SUPPORT= texinfo/texinfo.tex
  DIST_SUPPORT= $(DEVO_SUPPORT) $(TEXINFO_SUPPORT)
*************** gnats.tar.bz2: $(DIST_SUPPORT) $(GNATS_S
*** 1791,1800 ****
  
  .PHONY: gdb.tar.bz2
  GDB_SUPPORT_DIRS= bfd include libiberty mmalloc opcodes readline sim utils intl
- GDBTK_SUPPORT_DIRS= `if [ -d tcl -a -d tk ] ; then echo tcl tk itcl tix libgui; fi`
  gdb.tar.bz2: $(DIST_SUPPORT) $(GDB_SUPPORT_DIRS) gdb
  	$(MAKE) -f Makefile.in taz TOOL=gdb \
! 		SUPPORT_FILES="$(GDB_SUPPORT_DIRS) $(GDBTK_SUPPORT_DIRS)"
  
  .PHONY: newlib.tar.bz2
  NEWLIB_SUPPORT_DIRS=libgloss
--- 1796,1828 ----
  
  .PHONY: gdb.tar.bz2
  GDB_SUPPORT_DIRS= bfd include libiberty mmalloc opcodes readline sim utils intl
  gdb.tar.bz2: $(DIST_SUPPORT) $(GDB_SUPPORT_DIRS) gdb
  	$(MAKE) -f Makefile.in taz TOOL=gdb \
! 		SUPPORT_FILES="$(GDB_SUPPORT_DIRS)"
! 
! .PHONY: dejagnu.tar.bz2
! DEJAGNU_SUPPORT_DIRS=  tcl expect libiberty
! dejagnu.tar.bz2: $(DIST_SUPPORT) $(DEJAGNU_SUPPORT_DIRS) dejagnu
! 	$(MAKE) -f Makefile.in taz TOOL=dejagnu \
! 		SUPPORT_FILES="$(DEJAGNU_SUPPORT_DIRS)"
! 
! .PHONY: gdb+dejagnu.tar.bz2
! GDBD_SUPPORT_DIRS= $(GDB_SUPPORT_DIRS) tcl expect dejagnu
! gdb+dejagnu.tar.bz2: $(DIST_SUPPORT) $(GDBD_SUPPORT_DIRS) gdb
! 	$(MAKE) -f Makefile.in taz TOOL=gdb PACKAGE=gdb+dejagnu \
! 		SUPPORT_FILES="$(GDBD_SUPPORT_DIRS)"
! 
! .PHONY: insight.tar.bz2
! INSIGHT_SUPPORT_DIRS= $(GDB_SUPPORT_DIRS) tcl tk itcl tix libgui
! insight.tar.bz2: $(DIST_SUPPORT) $(GDB_SUPPORT_DIRS) gdb
! 	$(MAKE) -f Makefile.in taz TOOL=gdb PACKAGE=insight \
! 		SUPPORT_FILES="$(INSIGHT_SUPPORT_DIRS)"
! 
! .PHONY: insight+dejagnu.tar.bz2
! INSIGHTD_SUPPORT_DIRS= $(INSIGHT_SUPPORT_DIRS) expect dejagnu
! insight+dejagnu.tar.bz2: $(DIST_SUPPORT) $(INSIGHTD_SUPPORT_DIRS) gdb
! 	$(MAKE) -f Makefile.in taz TOOL=gdb PACKAGE="insight+dejagnu" \
! 		SUPPORT_FILES="$(INSIGHTD_SUPPORT_DIRS)"
  
  .PHONY: newlib.tar.bz2
  NEWLIB_SUPPORT_DIRS=libgloss

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]