• normal use for autotools


    1. remove temporary files, only used for test purpose.

     ls | sed -e "/^term.sh$/d" | sed -e "/^test.cpp$/d" | sed -e "/^Makefile.am$/d" | sed -e "/^autogen.sh$/d" | xargs -n 1 rm -rf

    2. edit autogen.sh

    echo "automatic generating configure.scan ......"
    autoscan

    echo "modifing configure.scan to configure.ac ......"
    sed -e "/AC_INIT/a
        AM_INIT_AUTOMAKE" configure.scan > configure.ac

    echo "automatic generating config.in.h ......"
    autoheader

    echo "aclocal ......"
    aclocal

    echo "creating files: README, AUTHORS, NEWS, ChangLog ......"
    touch README AUTHORS NEWS ChangeLog

    echo "Daniel King(long123king@163.com)" > AUTHORS
    echo "0.0.1" > ChangeLog
    echo -e " Automatic make" >> ChangeLog
    echo -e " Need to edit Makefile.am manually first" >> ChangeLog

    echo "automake ......"
    automake --add-missing --copy

    echo "autoconf ......"
    autoconf

    echo "./configure"
    ./configure

    echo "make"
    echo "##############################################################################"
    make
    echo "##############################################################################"

    3. run autogen.sh

    bash autogen.sh
  • 相关阅读:
    搭建论坛
    修改ecshop页面
    通信失败的原因
    UCenter教程
    discuz论坛 手机登录
    discuz论坛 安装短信插件
    eccshop获取商品详情属性的字段调用值
    php与discuz形成的对接
    php
    php论坛
  • 原文地址:https://www.cnblogs.com/long123king/p/3754760.html
Copyright © 2020-2023  润新知