Makefile pour developpement multi-OS, multi-variants

crabs_makefile-5.2 ©2003-2008 - Christophe Cazajus (crabs-mettre_le_signe_at-crabs-world.com)

~~ / crabs_mk.sh
Makefile include.LINUX include.SOLARIS include.CGI include.CGI_BIN include.XPI xpi_rdf.xsl Pdepend.c Pinfo.c PrelativeHome.c PrelativePath.c Pprojetgpl.c Prelative.c PinfoGPL.sh PgenInfo_c.sh PenvProjet.sh Pinfo2html.sh Pinstall.sh PgenInfo_include.sh projet.env crabs_mk.sh crabs_mk.csh fr/crabs_makefile.po Makefile.SOLARIS
    1 #!/bin/sh
    2 #
    3 # =============================================================================
    4 #  crabs_makefile-5.2 : Makefile pour developpement multi-OS, multi-variants
    5 #  Copyright (C) 2003-2008 : Christophe Cazajus (crabs-mettre_le_signe_at-crabs-world.com)
    6 #
    7 #  Ce source fait partie d'un projet logiciel libre. Vous pouvez le distribuer
    8 #  et/ou le modifier en respectant les termes de la GNU General Public License
    9 #  version 2 ou (suite a votre propre choix) une version ulterieure.
   10 #
   11 #  Ce programme est distribue dans l'espoir qu'il puisse etre utile, mais
   12 #  sans aucune garantie, meme si il est associe a un produit qui vous en
   13 #  propose une. Conformez-vous a la GNU General Public License pour avoir
   14 #  plus de precisions.
   15 #
   16 #  L'auteur ne peut etre tenu responsable de l'utilisation faite des
   17 #  composantes associees a ce projet (en partie ou dans leur totalite).
   18 #
   19 #  Une copie du fichier de la GNU GPL est fournie dans le repertoire DOC
   20 #  de ce projet sous le nom gnu_gpl.txt
   21 #
   22 # =============================================================================
   23 #
   24 # Environment for crabs_makefile
   25 ################################################################################
   26 # global environment
   27 OS="%%OS%%"
   28 CRABS_BASE="%%INSTALL%%"
   29 PATH=$PATH:$CRABS_BASE/bin
   30 PROJET_MK=$CRABS_BASE/etc
   31 CRABS_LOCALE=$CRABS_BASE/locale
   32 ################################################################################
   33 # in the home directory of the user
   34 PROJET_DFT="$HOME/.projet-edi/default"
   35 PROJET_LST="$HOME/.projet-edi/liste"
   36 ################################################################################
   37 # Aliases
   38 alias Pcourant='export PROJET=`pwd`;echo PROJET: `pwd`'
   39 alias Pcurrent='export PROJET=`pwd`;echo PROJECT: `pwd`'
   40 alias P='cd $PROJET;echo PROJET: `pwd`'
   41 alias mkn='make -r VARIANT=NORMAL'
   42 alias mkg='make -r VARIANT=DEBUG'
   43 alias Pdef='export PROJET=`pwd`; pwd > ${PROJET_DFT}'
   44 alias Pfromdef='export PROJET=`cat ${PROJET_DFT}`'
   45 ################################################################################
   46 # to the environmnent
   47 export OS
   48 export CRABS_BASE
   49 export PATH
   50 export PROJET_MK
   51 export CRABS_LOCALE
   52 export PROJET_DFT
   53 export PROJET_LST
   54 ################################################################################
   55 # some initialisation
   56 [ -d "`dirname \"$PROJET_LST\"`" ] || mkdir -p "`dirname \"$PROJET_LST\"`"
   57 [ -f "$PROJET_LST" ] || touch "$PROJET_LST"
   58 if [ -z "$PROJET" ] ; then
   59     if [ -f "$PROJET_DFT" ] ; then
   60         export PROJET="`cat $PROJET_DFT`"
   61     fi
   62 fi
   63 
Makefile include.LINUX include.SOLARIS include.CGI include.CGI_BIN include.XPI xpi_rdf.xsl Pdepend.c Pinfo.c PrelativeHome.c PrelativePath.c Pprojetgpl.c Prelative.c PinfoGPL.sh PgenInfo_c.sh PenvProjet.sh Pinfo2html.sh Pinstall.sh PgenInfo_include.sh projet.env crabs_mk.sh crabs_mk.csh fr/crabs_makefile.po Makefile.SOLARIS
~~ / crabs_mk.sh

Haut de page

Contacter crabs

Date de génération : 22/09/2011 21:47