IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Systèmes de compilation Discussion :

compilation DESTDIR repertoire usr/share/doc


Sujet :

Systèmes de compilation

  1. #1
    Membre éclairé

    Homme Profil pro
    développeur à la maison
    Inscrit en
    Septembre 2006
    Messages
    414
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Tarn et Garonne (Midi Pyrénées)

    Informations professionnelles :
    Activité : développeur à la maison

    Informations forums :
    Inscription : Septembre 2006
    Messages : 414
    Billets dans le blog
    16
    Par défaut compilation DESTDIR repertoire usr/share/doc
    Bonjour,

    Avec les autotools, comment faire pour que "make DESTDIR=hello-1.0-amd64 install" donne cette arboressence:
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    hello-1.0-amd64/
    hello-1.0-amd64/usr
    hello-1.0-amd64/usr/local
    hello-1.0-amd64/usr/local/bin
    hello-1.0-amd64/usr/local/bin/hello
    hello-1.0-amd64/usr/share
    hello-1.0-amd64/usr/share/doc
    hello-1.0-amd64/usr/share/doc/COPYING
    une idée?

  2. #2
    Membre éclairé

    Homme Profil pro
    développeur à la maison
    Inscrit en
    Septembre 2006
    Messages
    414
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Tarn et Garonne (Midi Pyrénées)

    Informations professionnelles :
    Activité : développeur à la maison

    Informations forums :
    Inscription : Septembre 2006
    Messages : 414
    Billets dans le blog
    16
    Par défaut
    j'y suis presque arrrivé.
    avec ce Makefile.am:
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    bin_PROGRAMS=hello
    hello_SOURCES=hello.cpp
    hellodir=/usr/share/doc/hello
    hello_DATA=gplv3.txt
    make DESTDIR=hello-1.0-amd64 install copie dans cette arboressence:
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    $ find hello-1.0-amd64/
    hello-1.0-amd64/
    hello-1.0-amd64/usr
    hello-1.0-amd64/usr/share
    hello-1.0-amd64/usr/share/doc
    hello-1.0-amd64/usr/share/doc/hello
    hello-1.0-amd64/usr/share/doc/hello/gplv3.txt
    hello-1.0-amd64/usr/share/doc/gplv3.txt
    hello-1.0-amd64/usr/local
    hello-1.0-amd64/usr/local/share
    hello-1.0-amd64/usr/local/share/full-package-name
    hello-1.0-amd64/usr/local/share/full-package-name/gplv3.txt
    hello-1.0-amd64/usr/local/bin
    hello-1.0-amd64/usr/local/bin/hello
    il y a les lignes:
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    hello-1.0-amd64/usr/local
    hello-1.0-amd64/usr/local/share
    hello-1.0-amd64/usr/local/share/full-package-name
    hello-1.0-amd64/usr/local/share/full-package-name/gplv3.txt
    j'ai ce configure.ac:
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    #                                               -*- Autoconf -*-
    # Process this file with autoconf to produce a configure script.
     
    AC_PREREQ([2.71])
    AC_INIT([FULL-PACKAGE-NAME], [VERSION], [BUG-REPORT-ADDRESS])
    AM_INIT_AUTOMAKE
    AC_CONFIG_SRCDIR([hello.cpp])
    AC_CONFIG_HEADERS([config.h])
    AC_LANG([C++])
    # Checks for programs.
    AC_PROG_CXX
     
    # Checks for libraries.
     
    # Checks for header files.
    AC_CHECK_HEADERS([iostream])
    # Checks for typedefs, structures, and compiler characteristics.
     
    # Checks for library functions.
    AC_CONFIG_FILES([Makefile])
    AC_OUTPUT
    comment faire pour que les autotools n'ajoutent pas les lignes suivantes:
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    hello-1.0-amd64/usr/share/doc/gplv3.txt
    hello-1.0-amd64/usr/local/share
    hello-1.0-amd64/usr/local/share/full-package-name
    hello-1.0-amd64/usr/local/share/full-package-name/gplv3.txt

  3. #3
    Membre éclairé

    Homme Profil pro
    développeur à la maison
    Inscrit en
    Septembre 2006
    Messages
    414
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Tarn et Garonne (Midi Pyrénées)

    Informations professionnelles :
    Activité : développeur à la maison

    Informations forums :
    Inscription : Septembre 2006
    Messages : 414
    Billets dans le blog
    16
    Par défaut
    j'y suis arrivé :

    Makefile.am:
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    bin_PROGRAMS=hello
    hello_SOURCES=hello.cpp
    hellodir=/usr/share/doc/hello
    hello_DATA=gplv3.txt
    configure.ac:
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    #                                               -*- Autoconf -*-
    # Process this file with autoconf to produce a configure script.
     
    AC_PREREQ([2.71])
    AC_INIT([hello], [1.0])
    AM_INIT_AUTOMAKE
    AC_CONFIG_SRCDIR([hello.cpp])
    AC_CONFIG_HEADERS([config.h])
    AC_LANG([C++])
    # Checks for programs.
    AC_PROG_CXXCPP
    AC_PROG_CXX
     
    # Checks for libraries.
     
    # Checks for header files.
    AC_CHECK_HEADERS([iostream])
    # Checks for typedefs, structures, and compiler characteristics.
     
    # Checks for library functions.
    AC_CONFIG_FILES([Makefile])
    AC_OUTPUT
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    $ aclocal|autoheader|automake -a -c|autoconf
    $ ./configure
    $ make
    $ make DESTDIR=hello-1.0-amd64 install
    $ find hello-1.0-amd64
    hello-1.0-amd64/
    hello-1.0-amd64/usr
    hello-1.0-amd64/usr/share
    hello-1.0-amd64/usr/share/doc
    hello-1.0-amd64/usr/share/doc/hello
    hello-1.0-amd64/usr/share/doc/hello/gplv3.txt
    hello-1.0-amd64/usr/local
    hello-1.0-amd64/usr/local/bin
    hello-1.0-amd64/usr/local/bin/hello
    en fait, je n'avais pas supprimé le répertoire hello-1.0-amd64 avant de refaire make DESTDIR=hello-1.0-amd64 install
    si ça peut aider quelqu'un

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. Réponses: 0
    Dernier message: 10/10/2011, 18h40
  2. /usr/share/tomcat6/bin/catalina.sh sert-il à qqch ?
    Par cmasset dans le forum Tomcat et TomEE
    Réponses: 1
    Dernier message: 05/06/2009, 16h39
  3. [DEV] problème compilation QT répertoire sources
    Par Peter57 dans le forum Apple
    Réponses: 1
    Dernier message: 19/01/2009, 14h38
  4. [PDF] Recherche indexée sur un repertoire avec des doc PDF
    Par alavoler dans le forum Windows XP
    Réponses: 0
    Dernier message: 04/04/2008, 14h12
  5. [RegEx] Utilité d'une ligne dans /usr/share/file/magic.mime
    Par BobLunique dans le forum Langage
    Réponses: 2
    Dernier message: 24/10/2007, 11h46

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo