[PATCH] Added target 'help' to the main Makefile (TO-DO included)

3 views
Skip to first unread message

Dario Rodriguez

unread,
Feb 24, 2011, 9:18:00 PM2/24/11
to mythos-...@googlegroups.com, Dario Rodriguez
Now, it shows a cool message like this:

MythBuild - Mythos Building System
==========================================================================

*USER DRIVEN TARGETS*

all (default) - Point to 'mythKernel' target
clean - Have a clean source tree
help - This help text
iso - Bootable iso image with a root filesystem

*GENERAL CONFIGURATION*

COMPILE_VERBOSE=Yes if you want to see compiler and linker commands
ALL_VERBOSE=Yes if you're insane and want almost every command
displayed on screen
GENISO=geisoimage if you have genisoimage instead of mkisofs

==========================================================================
We try to build an intelligent, friendly and configurable building system,
so please submit your comments and suggestions to the Mythos DevGourp at:

mythos-...@googlegroups.com

Adding 'MythBuild' in the subject
Copyright (C) 2011 Dario A. Rodriguez & Mythos DevGroup

TO-DO: Now, MythBuild needs a 'config' target and a way to save user-defined config

Signed-off-by: Dario Rodriguez <soft....@gmail.com>
---
Makefile | 48 +++++++++++++++++++++++++++++-------------------
1 files changed, 29 insertions(+), 19 deletions(-)

diff --git a/Makefile b/Makefile
index 3cec286..4512ec1 100644
--- a/Makefile
+++ b/Makefile
@@ -2,24 +2,6 @@
# Copyright (C) 2011 Dario A. Rodriguez & Mythos DevGroup
#
# :o::o::o::o::o::o::o::o::o::o::o::o::o::o::o::o::o::o::o::o::o::o::o::o::o::o::o::o::o::o::o::o:
-#
-# *TIPS TO READ*
-#
-# - If you wanto to compile and you want an ISO image, then 'make iso' is enough
-# - If you have genisoimage instead of mkisofs: 'make GENISO=genisoimage iso'
-#
-#
-# *USER DRIVEN TARGETS*
-#
-# all - Point to 'mythKernel' target
-# clean - Cleans almost everything
-#
-# *OTHER STUFF*
-# COMPILE_VERBOSE=Yes if you want to see compiler and linker commands
-# ALL_VERBOSE=Yes if you're insane and want almost every command displayed on screen
-#
-#
-# :o::o::o::o::o::o::o::o::o::o::o::o::o::o::o::o::o::o::o::o::o::o::o::o::o::o::o::o::o::o::o::o:

# Default Target is:
all:: mythKernel
@@ -99,7 +81,34 @@ YOUR_SYSTEM := $(shell uname)


# :o::o::o::o::o::o::o::o::o::o::o::o::o::o::o::o::o::o::o::o::o::o::o::o::o::o::o::o::o::o::o::o:
-.PHONY: clean iso salute
+.PHONY: clean iso salute help
+
+help::
+ @echo "MythBuild - Mythos Building System"
+ @echo "=========================================================================="
+ @echo ""
+ @echo " *USER DRIVEN TARGETS*"
+ @echo ""
+ @echo " all (default) - Point to 'mythKernel' target"
+ @echo " clean - Have a clean source tree"
+ @echo " help - This help text"
+ @echo " iso - Bootable iso image with a root filesystem"
+ @echo ""
+ @echo " *GENERAL CONFIGURATION*"
+ @echo ""
+ @echo " COMPILE_VERBOSE=Yes if you want to see compiler and linker commands"
+ @echo " ALL_VERBOSE=Yes if you're insane and want almost every command"
+ @echo " displayed on screen"
+ @echo " GENISO=geisoimage if you have genisoimage instead of mkisofs"
+ @echo ""
+ @echo "=========================================================================="
+ @echo "We try to build an intelligent, friendly and configurable building system,"
+ @echo "so please submit your comments and suggestions to the Mythos DevGourp at:"
+ @echo ""
+ @echo " mythos-...@googlegroups.com"
+ @echo ""
+ @echo "Adding 'MythBuild' in the subject"
+ @echo "Copyright (C) 2011 Dario A. Rodriguez & Mythos DevGroup"


# Before generating ISO image, a script builds the mythOS root filesystem
@@ -135,3 +144,4 @@ mythKernel:: salute $(KERN_OBJ)
$(GENMSG) LINKED KERNEL IMAGE [mythKernel]
$(UTILS_QUIET)ld -T src/kernel_linking_table.ld -o $@ $(KERN_OBJ)
@echo ">>> MYTHOS BUILD ENDED (start time was $(YOUR_DATETIME))"
+
--
1.7.2.3

Dario Rodriguez

unread,
Feb 26, 2011, 12:37:30 PM2/26/11
to mythos-...@googlegroups.com, Dario Rodriguez
On Thu, Feb 24, 2011 at 11:18 PM, Dario Rodriguez <soft....@gmail.com> wrote:
>  Now, it shows a cool message like this:
>
>  MythBuild - Mythos Building System
>  ==========================================================================
>
>   *USER DRIVEN TARGETS*
>
>     all (default)     - Point to 'mythKernel' target
>     clean             - Have a clean source tree
>     help              - This help text
>     iso               - Bootable iso image with a root filesystem
>
>   *GENERAL CONFIGURATION*
>
>     COMPILE_VERBOSE=Yes  if you want to see compiler and linker commands
>     ALL_VERBOSE=Yes      if you're insane and want almost every command
>                          displayed on screen
>     GENISO=geisoimage    if you have genisoimage instead of mkisofs
>
>  ==========================================================================
>  We try to build an intelligent, friendly and configurable building system,
>  so please submit your comments and suggestions to the Mythos DevGourp at:
>
>     mythos-...@googlegroups.com
>
>  Adding 'MythBuild' in the subject
>  Copyright (C) 2011 Dario A. Rodriguez & Mythos DevGroup
>
>  TO-DO: Now, MythBuild needs a 'config' target and a way to save user-defined config
>
> Signed-off-by: Dario Rodriguez <soft....@gmail.com>


Hola, siguiendo el tutorial 'doc/es/tutorial-revision-parches',
revisen si les parece correcto el parche que estoy enviando aqui. Mas
adelante, me gustaría ser el maintainer de MythBuild, que sería el
subsistema de compilación/instalación, conformado principalmente por
los makefiles.

Si nadie comenta nada en este hilo para el día Miercoles 23 a las
22:00 [-3], lo agregaré como está a 'master' para poder evaluar los
cambios de configuración de la construcción.

Me gustaría que aprovechen el tutorial y este primer parche para
aprender a parchear sus repos y postear las dudas que les surjan.

Saludos,
Dario

Reply all
Reply to author
Forward
0 new messages