rm -rf Makefile.am aclocal.m4 autom4te.cache autoscan.log config.h.in config.log config.status configure configure.ac sample.c install-sh missing
#
# sample.c
#
vi sample.c <<__EOF__
i#include <stdio.h>
int main(int argc, char* argv[])
{
printf("Hello, world!\n");
return;
} ^[
ZZ
__EOF__
#
# Makefile.am
#
vi Makefile.am <<__EOF__
iROGRAMS=sample
SOURCES=sample.c ^[
ZZ
__EOF__
autoscan
mv configure.scan configure.ac
#
# configure.ac
#
vi configure.ac <<__EOF__
/FULL
:s/FULL-PACKAGE-NAME/sample/
:s/VERSION/1.0.0/
:s/BUG-REPORT-ADDRESS/hoge@piyo.co.jp/
/AC_INIT
oAM_INIT_AUTOMAKE([-Wall -Werror foreign])^[
ZZ
__EOF__
autoreconf -vfi
ls -l
./configure
ls -l
make
※^[は、viで本当のESCコードになおす。 cntl+v esc
#
# sample.c
#
vi sample.c <<__EOF__
i#include <stdio.h>
int main(int argc, char* argv[])
{
printf("Hello, world!\n");
return;
} ^[
ZZ
__EOF__
#
# Makefile.am
#
vi Makefile.am <<__EOF__
iROGRAMS=sample
SOURCES=sample.c ^[
ZZ
__EOF__
autoscan
mv configure.scan configure.ac
#
# configure.ac
#
vi configure.ac <<__EOF__
/FULL
:s/FULL-PACKAGE-NAME/sample/
:s/VERSION/1.0.0/
:s/BUG-REPORT-ADDRESS/hoge@piyo.co.jp/
/AC_INIT
oAM_INIT_AUTOMAKE([-Wall -Werror foreign])^[
ZZ
__EOF__
autoreconf -vfi
ls -l
./configure
ls -l
make
※^[は、viで本当のESCコードになおす。 cntl+v esc
0 件のコメント:
コメントを投稿