Annotation of rpl/Makefile.am, revision 1.9

1.9     ! bertrand    1: SUBDIRS = tools rplsums rpliconv lapack/blas lapack/lapack ptmalloc3 src \
1.5       bertrand    2:        rpltags scripts man doc
1.4       bertrand    3: 
                      4: EXTRA_DIST = LIMITATIONS Licence_CeCILL_V2-fr.txt Licence_CeCILL_V2-en.txt \
                      5:        COPYING.in lapack/COPYING lapack/RELEASE \
                      6:        tests/tests.tar.gz vim/indent/rpl.vim vim/ftplugin/rpl.vim \
                      7:        vim/syntax/rpl.vim examples/obele.rpl examples/appel.tar.gz \
                      8:        examples/external.tar.gz
1.1       bertrand    9: 
                     10: include_HEADERS = rplconfig.h
                     11: 
1.3       bertrand   12: licences:
                     13:    cp -f $(top_builddir)/COPYING $(srcdir)
                     14:    make -C src $@
                     15: 
                     16: toolsdistclean:
                     17:    for i in @NCURSES@ @READLINE@ @UNITS@ @GSL@ @GPP@ @GNUPLOT_COMPILATION@ \
1.6       bertrand   18:            @FILE@ @ICONV@ @SQLITE@; \
1.3       bertrand   19:    do \
                     20:        \rm -rf $(srcdir)/tools/$$i; \
                     21:    done;
1.1       bertrand   22: 
1.2       bertrand   23: toolsclean:
                     24:    for i in @NCURSES@ @READLINE@ @UNITS@ @GSL@ @GPP@ @GNUPLOT_COMPILATION@ \
1.6       bertrand   25:            @FILE@ @ICONV@ @SQLITE@; \
1.2       bertrand   26:    do \
1.3       bertrand   27:        (cd $(top_builddir)/tools/$$i && $(MAKE) $(AM_MAKEFLAGS) clean); \
                     28:    done;
                     29: 
1.7       bertrand   30: $(top_builddir)/tools/@NCURSES@/lib/libncurses.a:
                     31:    for i in $(shell find tools/@NCURSES@ -name Makefile \
                     32:         -exec grep static {} /dev/null \; | cut -d: -f1); \
1.3       bertrand   33:    do \
1.7       bertrand   34:        echo -n Checking $$i; \
                     35:        TMP=$$(mktemp tmp.XXXXXXXXXX); \
                     36:        if [ -n "$$(grep static $$i | grep dynamic)" ]; then \
                     37:            awk \
                     38:            '{ \
                     39:                if (index($$0, "-static") != 0 && index($$0, "-dynamic") != 0) \
                     40:                { \
                     41:                    for(j = 1; j <= NF; j++) \
                     42:                    { \
                     43:                        if (index($$j, "-static") == 0) \
                     44:                        { \
                     45:                            printf("%s ", $$j); \
                     46:                        } \
                     47:                    } \
                     48:                    printf("\n"); \
                     49:                } \
                     50:                else \
                     51:                { \
                     52:                    print; \
                     53:                } \
                     54:            }' $$i > $$TMP; \
                     55:            \mv -f $$TMP $$i; \
                     56:            echo -n " (fixed)"; \
                     57:        else \
                     58:            echo -n " (nothing to do)"; \
                     59:            \rm -f $$TMP; \
                     60:        fi; \
                     61:        echo .; \
1.2       bertrand   62:    done;
1.3       bertrand   63:    (cd $(top_builddir)/tools/@NCURSES@ && $(MAKE) $(AM_MAKEFLAGS))
                     64: 
                     65: $(top_builddir)/tools/@READLINE@/libreadline.a \
                     66:        $(top_builddir)/tools/@READLINE@/libhistory.a:
                     67:    (cd $(top_builddir)/tools/@READLINE@ && $(MAKE) $(AM_MAKEFLAGS))
                     68: 
                     69: $(top_builddir)/tools/@GSL@/.libs/libgsl.a:
                     70:    (cd $(top_builddir)/tools/@GSL@ && $(MAKE) $(AM_MAKEFLAGS))
                     71: 
                     72: $(top_builddir)/tools/@ICONV@/lib/.libs/libiconv.a:
1.4       bertrand   73: # La dépendance est faite par rpliconv.
1.3       bertrand   74:    (cd $(top_builddir)/tools/@ICONV@ && $(MAKE) $(AM_MAKEFLAGS))
                     75: 
                     76: $(top_builddir)/lapack/lapack/liblapack.a:
                     77:    (cd $(top_builddir)/lapack/lapack && $(MAKE) $(AM_MAKEFLAGS))
                     78: 
                     79: $(top_builddir)/lapack/blas/libblas.a:
                     80:    (cd $(top_builddir)/lapack/blas && $(MAKE) $(AM_MAKEFLAGS))
                     81: 
                     82: $(top_builddir)/rpliconv/rpliconv: \
                     83:        $(top_builddir)/tools/@ICONV@/lib/.libs/libiconv.a
                     84:    (cd $(top_builddir)/rpliconv && $(MAKE) $(AM_MAKEFLAGS))
                     85: 
                     86: $(top_builddir)/tools/@FILE@/src/rplfile \
                     87:        $(top_builddir)/tools/@FILE@/magic/magic.mgc: \
                     88:        $(top_builddir)/tools/@ICONV@/lib/.libs/libiconv.a
1.7       bertrand   89:    TMP=$$(mktemp tmp.XXXXXXXXXX); \
                     90:    awk \
                     91:    '{ \
                     92:        if (index($$0, "LDFLAGS") == 1) \
                     93:        { \
                     94:            if (index($$0, "-static") == 0) \
                     95:            { \
                     96:                printf("%s -static\n", $$0); \
                     97:            } \
                     98:            else \
                     99:            { \
                    100:                print; \
                    101:            } \
                    102:        } \
                    103:        else \
                    104:        { \
                    105:            print; \
                    106:        } \
                    107:    }' tools/@FILE@/src/Makefile > $$TMP; \
                    108:    \mv -f $$TMP tools/@FILE@/src/Makefile
1.3       bertrand  109:    (cd $(top_builddir)/tools/@FILE@ && $(MAKE) $(AM_MAKEFLAGS))
                    110: 
1.5       bertrand  111: $(top_builddir)/tools/@SQLITE@/.libs/libsqlite3.a:
                    112:    (cd $(top_builddir)/tools/@SQLITE@ && $(MAKE) $(AM_MAKEFLAGS))
                    113: 
                    114: $(top_builddir)/tools/@OPENSSL@/libcrypto.a \
                    115:        $(top_builddir)/tools/@OPENSSL@/libssl.a:
                    116:    (cd $(top_builddir)/tools/@OPENSSL@ && $(MAKE) $(AM_MAKEFLAGS))
                    117: 
1.9     ! bertrand  118: $(top_builddir)/ptmalloc3/libptmalloc3.a :
        !           119:        (cd $(top_builddir)/ptmalloc3 && $(MAKE) $(AM_MAKEFLAGS))
        !           120: 
1.5       bertrand  121: $(top_builddir)/tools/rplsums/rplmd5sum \
                    122:        $(top_builddir)/tools/rplsums/rplsha1sum: \
                    123:        $(top_builddir)/tools/@OPENSSL@/libcrypto.a
                    124:    (cd $(top_builddir)/rplsums && $(MAKE) $(AM_MAKEFLAGS))
                    125: 
                    126: $(top_builddir)/tools/@GPP@/src/gpp:
                    127:    (cd $(top_builddir)/tools/@GPP@ && $(MAKE) $(AM_MAKEFLAGS))
                    128: 
1.4       bertrand  129: .NOTPARALLEL: $(top_builddir)/tools/@FILE@/src/rplfile \
                    130:        $(top_builddir)/tools/@FILE@/magic/magic.mgc
                    131: 
                    132: .NOTPARALLEL: $(top_builddir)/tools/@READLINE@/libreadline.a \
                    133:        $(top_builddir)/tools/@READLINE@/libhistory.a
                    134: 
1.5       bertrand  135: .NOTPARALLEL: $(top_builddir)/tools/@OPENSSL@/libcrypto.a \
                    136:        $(top_builddir)/tools/@OPENSSL@/libssl.a
                    137: 
                    138: .NOTPARALLEL: $(top_builddir)/tools/rplsums/rplmd5sum \
                    139:        $(top_builddir)/tools/rplsums/rplsha1sum
                    140: 
1.3       bertrand  141: all: $(top_builddir)/tools/@NCURSES@/lib/libncurses.a \
                    142:        $(top_builddir)/tools/@READLINE@/libreadline.a \
                    143:        $(top_builddir)/tools/@READLINE@/libhistory.a \
                    144:        $(top_builddir)/tools/@GSL@/.libs/libgsl.a \
1.5       bertrand  145:        $(top_builddir)/tools/@SQLITE@/.libs/libsqlite3.a \
                    146:        $(top_builddir)/tools/@OPENSSL@/libcrypto.a \
                    147:        $(top_builddir)/tools/@OPENSSL@/libssl.a \
1.3       bertrand  148:        $(top_builddir)/lapack/lapack/liblapack.a \
                    149:        $(top_builddir)/lapack/blas/libblas.a \
1.9     ! bertrand  150:        $(top_builddir)/ptmalloc3/libptmalloc3.a \
1.3       bertrand  151:        $(top_builddir)/rpliconv/rpliconv \
                    152:        $(top_builddir)/tools/@FILE@/src/rplfile \
1.5       bertrand  153:        $(top_builddir)/tools/@FILE@/magic/magic.mgc \
                    154:        $(top_builddir)/tools/rplsums/rplmd5sum \
                    155:        $(top_builddir)/tools/rplsums/rplsha1sum \
                    156:        $(top_builddir)/tools/@GPP@/src/gpp
1.4       bertrand  157: # Cette règle n'est là que pour forcer la compilation de Gnuplot.
                    158:    (cd $(top_builddir)/tools && $(MAKE) $(AM_MAKEFLAGS))
                    159:    (cd $(top_builddir)/rpltags && $(MAKE) $(AM_MAKEFLAGS))
1.3       bertrand  160:    (cd $(top_builddir)/src && $(MAKE) $(AM_MAKEFLAGS))

CVSweb interface <joel.bertrand@systella.fr>