Annotation of rpl/Makefile.am, revision 1.13

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.11      bertrand   63:    for i in tools/@NCURSES@/test/Makefile; \
                     64:    do \
                     65:        echo -n Checking $$i; \
                     66:        TMP=$$(mktemp tmp.XXXXXXXXXX); \
                     67:        awk \
                     68:            '/^TEST_ARGS/ \
                     69:                { printf("TEST_ARGS = ../lib/libform.a ../lib/libmenu.a "); \
                     70:                printf("../lib/libpanel.a ../lib/libncurses.a\n"); } \
                     71:            ! /^TEST_ARGS/ \
                     72:                { print; }' tools/@NCURSES@/test/Makefile > $$TMP; \
                     73:        \mv -f $$TMP $$i; \
                     74:        echo .; \
                     75:    done;
1.3       bertrand   76:    (cd $(top_builddir)/tools/@NCURSES@ && $(MAKE) $(AM_MAKEFLAGS))
                     77: 
                     78: $(top_builddir)/tools/@READLINE@/libreadline.a \
                     79:        $(top_builddir)/tools/@READLINE@/libhistory.a:
                     80:    (cd $(top_builddir)/tools/@READLINE@ && $(MAKE) $(AM_MAKEFLAGS))
                     81: 
                     82: $(top_builddir)/tools/@GSL@/.libs/libgsl.a:
                     83:    (cd $(top_builddir)/tools/@GSL@ && $(MAKE) $(AM_MAKEFLAGS))
                     84: 
                     85: $(top_builddir)/tools/@ICONV@/lib/.libs/libiconv.a:
1.4       bertrand   86: # La dépendance est faite par rpliconv.
1.3       bertrand   87:    (cd $(top_builddir)/tools/@ICONV@ && $(MAKE) $(AM_MAKEFLAGS))
                     88: 
                     89: $(top_builddir)/lapack/lapack/liblapack.a:
                     90:    (cd $(top_builddir)/lapack/lapack && $(MAKE) $(AM_MAKEFLAGS))
                     91: 
                     92: $(top_builddir)/lapack/blas/libblas.a:
                     93:    (cd $(top_builddir)/lapack/blas && $(MAKE) $(AM_MAKEFLAGS))
                     94: 
1.12      bertrand   95: $(top_builddir)/rpliconv/rpliconv$(EXEEXT): \
1.3       bertrand   96:        $(top_builddir)/tools/@ICONV@/lib/.libs/libiconv.a
                     97:    (cd $(top_builddir)/rpliconv && $(MAKE) $(AM_MAKEFLAGS))
                     98: 
                     99: $(top_builddir)/tools/@FILE@/src/rplfile \
                    100:        $(top_builddir)/tools/@FILE@/magic/magic.mgc: \
                    101:        $(top_builddir)/tools/@ICONV@/lib/.libs/libiconv.a
1.7       bertrand  102:    TMP=$$(mktemp tmp.XXXXXXXXXX); \
                    103:    awk \
                    104:    '{ \
                    105:        if (index($$0, "LDFLAGS") == 1) \
                    106:        { \
                    107:            if (index($$0, "-static") == 0) \
                    108:            { \
                    109:                printf("%s -static\n", $$0); \
                    110:            } \
                    111:            else \
                    112:            { \
                    113:                print; \
                    114:            } \
                    115:        } \
                    116:        else \
                    117:        { \
                    118:            print; \
                    119:        } \
                    120:    }' tools/@FILE@/src/Makefile > $$TMP; \
                    121:    \mv -f $$TMP tools/@FILE@/src/Makefile
1.3       bertrand  122:    (cd $(top_builddir)/tools/@FILE@ && $(MAKE) $(AM_MAKEFLAGS))
                    123: 
1.5       bertrand  124: $(top_builddir)/tools/@SQLITE@/.libs/libsqlite3.a:
                    125:    (cd $(top_builddir)/tools/@SQLITE@ && $(MAKE) $(AM_MAKEFLAGS))
                    126: 
                    127: $(top_builddir)/tools/@OPENSSL@/libcrypto.a \
                    128:        $(top_builddir)/tools/@OPENSSL@/libssl.a:
                    129:    (cd $(top_builddir)/tools/@OPENSSL@ && $(MAKE) $(AM_MAKEFLAGS))
                    130: 
1.9       bertrand  131: $(top_builddir)/ptmalloc3/libptmalloc3.a :
                    132:        (cd $(top_builddir)/ptmalloc3 && $(MAKE) $(AM_MAKEFLAGS))
                    133: 
1.5       bertrand  134: $(top_builddir)/tools/rplsums/rplmd5sum \
                    135:        $(top_builddir)/tools/rplsums/rplsha1sum: \
                    136:        $(top_builddir)/tools/@OPENSSL@/libcrypto.a
                    137:    (cd $(top_builddir)/rplsums && $(MAKE) $(AM_MAKEFLAGS))
                    138: 
1.12      bertrand  139: $(top_builddir)/tools/@GPP@/src/gpp$(EXEEXT):
1.5       bertrand  140:    (cd $(top_builddir)/tools/@GPP@ && $(MAKE) $(AM_MAKEFLAGS))
                    141: 
1.12      bertrand  142: .NOTPARALLEL: $(top_builddir)/tools/@FILE@/src/rplfile$(EXEEXT) \
1.4       bertrand  143:        $(top_builddir)/tools/@FILE@/magic/magic.mgc
                    144: 
                    145: .NOTPARALLEL: $(top_builddir)/tools/@READLINE@/libreadline.a \
                    146:        $(top_builddir)/tools/@READLINE@/libhistory.a
                    147: 
1.5       bertrand  148: .NOTPARALLEL: $(top_builddir)/tools/@OPENSSL@/libcrypto.a \
                    149:        $(top_builddir)/tools/@OPENSSL@/libssl.a
                    150: 
                    151: .NOTPARALLEL: $(top_builddir)/tools/rplsums/rplmd5sum \
                    152:        $(top_builddir)/tools/rplsums/rplsha1sum
                    153: 
1.13    ! bertrand  154: install-strip:
        !           155:    $(MAKE) $(AM_MAKEFLAGS) install
        !           156: 
1.3       bertrand  157: all: $(top_builddir)/tools/@NCURSES@/lib/libncurses.a \
                    158:        $(top_builddir)/tools/@READLINE@/libreadline.a \
                    159:        $(top_builddir)/tools/@READLINE@/libhistory.a \
                    160:        $(top_builddir)/tools/@GSL@/.libs/libgsl.a \
1.5       bertrand  161:        $(top_builddir)/tools/@SQLITE@/.libs/libsqlite3.a \
                    162:        $(top_builddir)/tools/@OPENSSL@/libcrypto.a \
                    163:        $(top_builddir)/tools/@OPENSSL@/libssl.a \
1.3       bertrand  164:        $(top_builddir)/lapack/lapack/liblapack.a \
                    165:        $(top_builddir)/lapack/blas/libblas.a \
1.9       bertrand  166:        $(top_builddir)/ptmalloc3/libptmalloc3.a \
1.12      bertrand  167:        $(top_builddir)/rpliconv/rpliconv$(EXEEXT) \
                    168:        $(top_builddir)/tools/@FILE@/src/rplfile$(EXEEXT) \
1.5       bertrand  169:        $(top_builddir)/tools/@FILE@/magic/magic.mgc \
                    170:        $(top_builddir)/tools/rplsums/rplmd5sum \
                    171:        $(top_builddir)/tools/rplsums/rplsha1sum \
1.12      bertrand  172:        $(top_builddir)/tools/@GPP@/src/gpp$(EXEEXT)
1.4       bertrand  173: # Cette règle n'est là que pour forcer la compilation de Gnuplot.
                    174:    (cd $(top_builddir)/tools && $(MAKE) $(AM_MAKEFLAGS))
                    175:    (cd $(top_builddir)/rpltags && $(MAKE) $(AM_MAKEFLAGS))
1.3       bertrand  176:    (cd $(top_builddir)/src && $(MAKE) $(AM_MAKEFLAGS))

CVSweb interface <joel.bertrand@systella.fr>