* Re: [PATCH] Makefile.tpl
@ 2002-11-14 10:26 Nathanael Nerode
2002-11-14 11:31 ` DJ Delorie
0 siblings, 1 reply; 3+ messages in thread
From: Nathanael Nerode @ 2002-11-14 10:26 UTC (permalink / raw)
To: bkorb; +Cc: gcc-patches
>Hi Nathanael,
>
>A template patch based on top of tree:
>
>2002-11-14 Bruce Korb <bkorb@gnu.org>
>
> * Makefile.tpl: syntatic cleanup
Oooh. I like your style for the FORs; I hadn't figured that possibility
out.
However, I might actually be adding stuff in the no_check, no_clean,
no_install sections, so I don't think those should be rewritten right
now. This file is in a state of major flux.
I'm doing my work on the 3.4bib branch right now. I'll put the FOR
changes in there myself.
Of course, I can't actually approve anything. :-)
--Nathanael
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] Makefile.tpl
2002-11-14 10:26 [PATCH] Makefile.tpl Nathanael Nerode
@ 2002-11-14 11:31 ` DJ Delorie
0 siblings, 0 replies; 3+ messages in thread
From: DJ Delorie @ 2002-11-14 11:31 UTC (permalink / raw)
To: neroden; +Cc: bkorb, gcc-patches
> >2002-11-14 Bruce Korb <bkorb@gnu.org>
> >
> > * Makefile.tpl: syntatic cleanup
>
> Of course, I can't actually approve anything. :-)
That patch is fine if you want to install it.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH] Makefile.tpl
@ 2002-11-14 10:20 Bruce Korb
0 siblings, 0 replies; 3+ messages in thread
From: Bruce Korb @ 2002-11-14 10:20 UTC (permalink / raw)
To: GCC-Patches, Nathanael Nerode; +Cc: bkorb
[-- Attachment #1: Type: text/plain, Size: 130 bytes --]
Hi Nathanael,
A template patch based on top of tree:
2002-11-14 Bruce Korb <bkorb@gnu.org>
* Makefile.tpl: syntatic cleanup
[-- Attachment #2: mf.diff --]
[-- Type: text/plain, Size: 4422 bytes --]
Index: Makefile.tpl
===================================================================
RCS file: /cvs/gcc/gcc/Makefile.tpl,v
retrieving revision 1.12
diff -u -p -r1.12 Makefile.tpl
--- Makefile.tpl 25 Oct 2002 22:49:58 -0000 1.12
+++ Makefile.tpl 14 Nov 2002 18:19:00 -0000
@@ -1,4 +1,4 @@
-[+ AutoGen5 template
+[+ AutoGen5 template -*- Mode: Makefile -*-
in
+]
@@ -522,8 +522,10 @@ CONFIGURE_BUILD_MODULES = \
# This is a list of the targets for all of the modules which are compiled
# using $(FLAGS_TO_PASS).
-ALL_MODULES = [+ FOR host_modules +]\
- all-[+module+] [+ ENDFOR host_modules +]\
+ALL_MODULES =[+
+ FOR host_modules +] \
+ all-[+module+][+
+ ENDFOR host_modules +] \
$(EXTRA_TARGET_HOST_ALL_MODULES)
# This is a list of the check targets for all of the modules which are
@@ -539,16 +541,25 @@ NATIVE_CHECK_MODULES = \
check-flex \
check-zip
-CROSS_CHECK_MODULES = [+ FOR host_modules +][+ IF no_check +][+ ELIF no_check_cross +][+ ELSE x +]\
- check-[+module+] [+ ENDIF no_check +][+ ENDFOR host_modules +]\
+CROSS_CHECK_MODULES =[+
+ FOR host_modules +][+
+ IF (not (or (exist? "no_check_cross") (exist? "no_check")))
+ +] \
+ check-[+module+][+
+ ENDIF no_check +][+
+ ENDFOR host_modules +] \
$(EXTRA_TARGET_HOST_CHECK_MODULES)
CHECK_MODULES=$(NATIVE_CHECK_MODULES) $(CROSS_CHECK_MODULES)
# This is a list of the install targets for all of the modules which are
# compiled using $(FLAGS_TO_PASS).
-INSTALL_MODULES = [+ FOR host_modules+][+ IF no_install +][+ ELSE no_install +]\
- install-[+module+] [+ ENDIF no_install +][+ ENDFOR host_modules +]\
+INSTALL_MODULES = [+
+ FOR host_modules+][+
+ IF (not (exist? "no_install")) +] \
+ install-[+module+][+
+ ENDIF no_install +][+
+ ENDFOR host_modules +]\
$(EXTRA_TARGET_HOST_INSTALL_MODULES)
# This is a list of the targets for all of the modules which are compiled
@@ -583,31 +594,51 @@ INSTALL_X11_MODULES = \
# This is a list of the targets for all of the modules which are compiled
# using $(TARGET_FLAGS_TO_PASS).
-ALL_TARGET_MODULES = [+ FOR target_modules +]\
- all-target-[+module+] [+ ENDFOR target_modules +]
+ALL_TARGET_MODULES =[+
+ FOR target_modules +] \
+ all-target-[+module+][+
+ ENDFOR target_modules +]
# This is a list of the configure targets for all of the modules which
# are compiled using the target tools.
-CONFIGURE_TARGET_MODULES = [+ FOR target_modules +]\
- configure-target-[+module+] [+ ENDFOR target_modules +]
+CONFIGURE_TARGET_MODULES =[+
+ FOR target_modules +] \
+ configure-target-[+module+][+
+ ENDFOR target_modules +]
# This is a list of the check targets for all of the modules which are
# compiled using $(TARGET_FLAGS_TO_PASS).
-CHECK_TARGET_MODULES = [+ FOR target_modules +][+ IF no_check +][+ ELSE check +]\
- check-target-[+module+] [+ ENDIF no_check +][+ ENDFOR target_modules +]
+CHECK_TARGET_MODULES =[+
+ FOR target_modules +][+
+ IF (not (exist? "no_check")) +] \
+ check-target-[+module+][+
+ ENDIF no_check +][+
+ ENDFOR target_modules +]
# This is a list of the install targets for all of the modules which are
# compiled using $(TARGET_FLAGS_TO_PASS).
-INSTALL_TARGET_MODULES = [+ FOR target_modules +][+ IF no_install +][+ ELSE install +]\
- install-target-[+module+] [+ ENDIF no_install +][+ ENDFOR target_modules +]
+INSTALL_TARGET_MODULES =[+
+ FOR target_modules +][+
+ IF (not (exist? "no_install")) +] \
+ install-target-[+module+][+
+ ENDIF no_install +][+
+ ENDFOR target_modules +]
# This is a list of the targets for which we can do a clean-{target}.
-CLEAN_MODULES = [+ FOR host_modules +][+ IF no_clean +][+ ELSE no_clean +]\
- clean-[+module+] [+ ENDIF no_clean +][+ ENDFOR host_modules +]
+CLEAN_MODULES =[+
+ FOR host_modules +][+
+ IF (not (exist? "no_clean")) +] \
+ clean-[+module+][+
+ ENDIF no_clean +][+
+ ENDFOR host_modules +]
# All of the target modules that can be cleaned
-CLEAN_TARGET_MODULES = [+ FOR target_modules +][+ IF no_clean +][+ ELSE clean +]\
- clean-target-[+module+] [+ ENDIF no_clean +][+ ENDFOR target_modules +]
+CLEAN_TARGET_MODULES =[+
+ FOR target_modules +][+
+ IF (not (exist? "no_clean")) +] \
+ clean-target-[+module+][+
+ ENDIF no_clean +][+
+ ENDFOR target_modules +]
# All of the x11 modules that can be cleaned
CLEAN_X11_MODULES = \
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2002-11-14 19:31 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-11-14 10:26 [PATCH] Makefile.tpl Nathanael Nerode
2002-11-14 11:31 ` DJ Delorie
-- strict thread matches above, loose matches on Subject: below --
2002-11-14 10:20 Bruce Korb
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).