🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.bug
Article #2652

"gas" 1.33 Makefile modification

#2652
From: aks Alan Stebbens
Date: Fri, 19 May 1989 02:20
58 lines
1987 bytes
Similar to the Makefile modification for "gcc", the following patch for
"gas" Makefile 1.33 makes the install target install gas with the
version appended to the filename.  The plain name is then a symbolic
link to the version-qualified name.  Also, it will only install if
necessary. 

Alan Stebbens <aks@hub.ucsb.edu>

==============================
*** Makefile.orig	Thu May 18 18:28:35 1989
--- Makefile	Thu May 18 19:17:48 1989
***************
*** 1,5 ****
--- 1,6 ----
  # Makefile for GAS.
  # Copyright (C) 1989, Free Software Foundation
+ VERSION=1.33
  # 
  # This file is part of GAS, the GNU Assembler.
  # 
***************
*** 33,38 ****
--- 34,54 ----
  
  # If you just want to compile the sparc assembler, type 'make asparc'
  
+ # set bindir to the desired installation directory
+ BINDIR=	/usr/local/bin
+ 
+ GAS=	$(BINDIR)/gas
+ GASV=	$(GAS)-$(VERSION)
+ 
+ # Set INSTALL to "install" or "cp"
+ INSTALL=	install -c
+ 
+ # Set LINK to "ln -s" or "cp" if you don't want symbolic links
+ LINK=	ln -s 
+ 
+ INSTALLFILE=	$(INSTALL) $? $@
+ LINKFILE=	rm -f $@ ; $(LINK) $? $@
+ 
  # To make the 68020 assembler compile as the default, un-comment the next
  # five lines (the first line starts with a:), and comment out the
  # a: groups for the other assemblers.
***************
*** 248,252 ****
  
  dist:	gas-dist.tar gas-dist.tar.Z
  
! install:	a
! 	cp a /usr/local/bin/gas
--- 264,269 ----
  
  dist:	gas-dist.tar gas-dist.tar.Z
  
! install:	$(GAS)
! $(GAS):		$(GASV)	; 	$(LINKFILE)
! $(GASV):	a	;	$(INSTALLFILE)
Technical Details
Message-ID: <8905190220.AA20308@hub.ucsb.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!HUB.UCSB.EDU!aks%ccse

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!HUB.UCSB.EDU!aks%ccse
From: aks%ccse@HUB.UCSB.EDU (aks@hub, Alan Stebbens)
Newsgroups: gnu.gcc.bug
Subject: "gas" 1.33 Makefile modification
Message-ID: <8905190220.AA20308@hub.ucsb.edu>
Date: 19 May 89 02:20:30 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 58