autoconf automake

ものぐさ用スクリプト

#!/bin/sh
echo "#test is skelton code \n"\
"bin_PROGRAMS=test\n"\
"#test_CFLAGS is test package C compiler option\n"\
"#test_CXXFLAGS is test package C++ compiler option\n"\
"#test_LDADD is test package LOADER option\n"\
"#libtest_LIBRARIES is libtest package define\n"\
"#libtest_a_SOURCES is libtest package source files\n"\
"#test_SOURCES= is test package sourcefiles\n" > Makefile.am
vim Makefile.am 
autoscan 
awk '{if(/AC_INIT/){ print "AC_INIT(FULL-PACKAGE-NAME, 0.0.1, name@hoge.jp)";print"AM_INIT_AUTOMAKE" }else{ print $0} }' configure.scan > configure.ac
vim configure.ac 
aclocal
autoheader 
autoconf 
automake -a -c