[Top][All Lists]

[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:

---    2004-08-15 13:00:54.000000000
+++        2004-08-15 13:07:39.000000000 +0200
@@ -216,7 +216,6 @@
        -mkdir -p $(GM2_LIB_DIR_ISO)
 gm2.install-common: installdirs $(GM2_LIB_DIR_PIM)
        -if [ -f $(GM2)$(exeext) ]; then \
          if [ -f $(GM2)-cross$(exeext) ]; then \
@@ -296,6 +295,23 @@
+gm2.install-normal: gm2.install-common
gm2.install-info gm2.install-man
+# This target will install GM2 into an existing GCC
+# without overwriting existing files.
+# The semicolon is to prevent the ->
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
+    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
        -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

reply via email to

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