aks%ccse@HUB.UCSB.EDU (aks@hub, Alan Stebbens) (05/19/89)
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)