5 cp config.h.
in configure.ac ..
/build
7 cp -r src include
/a build
10 for i
in $
(find a
-regex ".*\.\(h\|hh\)"); do
14 for i
in $
(find src
-regex ".*\.\(c\|h\)"); do
15 C_SOURCES
="$C_SOURCES $i"
18 for i
in $
(find src
-regex ".*\.\(cc\|hh\)"); do
19 CXX_SOURCES
="$CXX_SOURCES $i"
22 echo "ACLOCAL_AMFLAGS = -I m4
23 lib_LTLIBRARIES = liba.la
24 liba_la_CPPFLAGS = -std=c11
25 liba_la_LDFLAGS = -version-info 1:9:1
26 liba_la_SOURCES =$C_SOURCES autogen.sh
27 liba_la_LIBADD = \$(liba_cc_la_OBJECTS)
28 noinst_LTLIBRARIES = liba.cc.la
29 liba_cc_la_CPPFLAGS = -std=c++11
30 liba_cc_la_SOURCES =$CXX_SOURCES
31 nobase_include_HEADERS =$HEADERS
33 \$(INSTALL_DATA) config.h \$(DESTDIR)\$(includedir)/a
34 @sed -i 's|#if defined(A_HAVE_H)|#include \"config.h\"\\\\n#if defined(A_HAVE_H)|g' \$(DESTDIR)\$(includedir)/a/a.h
36 \$(RM) \$(DESTDIR)\$(includedir)/a/config.h" > Makefile.am
38 echo "libtoolize -Wall -ci
41 automake -Wall --add-missing
42 if [ -f config.h.in~ ] && [ -f config.h.in ]; then
43 mv config.h.in~ config.h.in
48 make distcheck dist-xz