gm2
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gm2] Another suggestion for GM2


From: Diego Rodríguez Rodríguez
Subject: [Gm2] Another suggestion for GM2
Date: Sun, 15 Aug 2004 14:11:36 +0200 (CEST)

I took the idea (and the patch) from GNU Pascal.

If we have built the Modula-2 compiler with the
sources of the GCC we have installed there is no need
to install the C part overwriting existing copies of
'libgcc.a' and current 'specs'
So I added the 'gm2.install' (and
'gm2.install-with-gcc') target to the GCC Makefile to
perform a Modula-2 only install (this will help too
distro maintainers to make packages).

This patch seems to work:

--- Make-lang.in.old    2004-08-15 13:00:54.000000000
+0200
+++ Make-lang.in        2004-08-15 13:07:39.000000000 +0200
@@ -216,7 +216,6 @@
 $(GM2_LIB_DIR_ISO):
        -mkdir -p $(GM2_LIB_DIR_ISO)
 
-gm2.install-normal:
 gm2.install-common: installdirs $(GM2_LIB_DIR_PIM)
$(GM2_LIB_DIR_ISO)
        -if [ -f $(GM2)$(exeext) ]; then \
          if [ -f $(GM2)-cross$(exeext) ]; then \
@@ -296,6 +295,23 @@
 
 gm2.install-man:
 
+gm2.install-normal: gm2.install-common
gm2.install-info gm2.install-man
+
+# This target will install GM2 into an existing GCC
installation,
+# without overwriting existing files.
+# The semicolon is to prevent the install.sh ->
install default rule
+# from doing anything.  Having it run true helps
avoid problems and
+# noise from versions of make which don't like to
have null commands.
+gm2.install: gm2.install-normal; @true
+
+gm2.install-with-gcc: $(INSTALL_HEADERS) gm2.install
$(INSTALL_LIBGCC)
+    for file in $(GCC_PASSES); do \
+      if [ x"$$file" != x"xgcc$(exeext)" ]; then \
+        rm -f $(DESTDIR)$(libsubdir)/$$file; \
+        $(INSTALL_PROGRAM) $$file
$(DESTDIR)$(libsubdir)/$$file || exit 1; \
+      fi; \
+    done; exit 0
+
 gm2.uninstall:
        -rm -rf $(bindir)/$(GM2_INSTALL_NAME)
        -rm -rf $(bindir)/$(GM2_CROSS_NAME)

However if the user builds gm2 with a slighty
different version he can do 'gm2.install-with-gcc' to
install the gcc required files.

Thanks a lot for your time.


                
______________________________________________
Renovamos el Correo Yahoo!: ¡100 MB GRATIS!
Nuevos servicios, más seguridad
http://correo.yahoo.es



reply via email to

[Prev in Thread] Current Thread [Next in Thread]