Annotation of rpl/Makefile.am, revision 1.60

1.26      bertrand    1: SUBDIRS = tools rplsums rpliconv rplawk lapack/blas lapack/lapack rplcas src \
1.5       bertrand    2:        rpltags scripts man doc
1.4       bertrand    3: 
1.25      bertrand    4: include_HEADERS = rplconfig.h
                      5: 
1.4       bertrand    6: EXTRA_DIST = LIMITATIONS Licence_CeCILL_V2-fr.txt Licence_CeCILL_V2-en.txt \
1.48      bertrand    7:        COPYING.in lapack/COPYING lapack/RELEASE autogen.sh \
1.4       bertrand    8:        tests/tests.tar.gz vim/indent/rpl.vim vim/ftplugin/rpl.vim \
                      9:        vim/syntax/rpl.vim examples/obele.rpl examples/appel.tar.gz \
1.42      bertrand   10:        examples/external.tar.gz DEBIAN/control.in \
1.27      bertrand   11:        rplcas/@GMP@.tar.gz rplcas/@MPFR@.tar.gz rplcas/@NTL@.tar.gz \
                     12:        rplcas/@COCOA@.tar.gz rplcas/@PARI@.tar.gz rplcas/@GIAC@.tar.gz
1.1       bertrand   13: 
1.60    ! bertrand   14: all:
        !            15:    @if [ -n $(shell $(MAKE) -v | grep "^GNU Make") ]; then \
        !            16:        echo; \
        !            17:        echo MAKE=$(MAKE); \
        !            18:        echo "Please use GNU Make !"; \
        !            19:        echo; \
        !            20:        false; \
        !            21:    fi
        !            22:    $(MAKE) all-rpl
        !            23: 
1.3       bertrand   24: licences:
                     25:    cp -f $(top_builddir)/COPYING $(srcdir)
1.29      bertrand   26:    $(MAKE) -C src $@
1.3       bertrand   27: 
                     28: toolsdistclean:
                     29:    for i in @NCURSES@ @READLINE@ @UNITS@ @GSL@ @GPP@ @GNUPLOT_COMPILATION@ \
1.57      bertrand   30:            @FILE@ @ICONV@ @SQLITE@ @SIGSEGV@ @BUILD_OPENMOTIF@; \
1.3       bertrand   31:    do \
1.17      bertrand   32:        rm -rf $(srcdir)/tools/$$i; \
1.3       bertrand   33:    done;
1.57      bertrand   34:    rm -f $(top_builddir)/tools/openmotif.lib
                     35:    rm -rf $(top_builddir)/tools/@OPENSSL@
1.1       bertrand   36: 
1.2       bertrand   37: toolsclean:
                     38:    for i in @NCURSES@ @READLINE@ @UNITS@ @GSL@ @GPP@ @GNUPLOT_COMPILATION@ \
1.57      bertrand   39:            @FILE@ @ICONV@ @SQLITE@ @SIGSEGV@ @BUILD_OPENMOTIF@; \
1.2       bertrand   40:    do \
1.14      bertrand   41:        $(MAKE) -C $(top_builddir)/tools/$$i $(AM_MAKEFLAGS) clean); \
1.3       bertrand   42:    done;
                     43: 
1.32      bertrand   44: $(top_builddir)/tools/@NCURSES@/lib/@LIB_PREFIX@ncurses.a:
1.7       bertrand   45:    for i in $(shell find tools/@NCURSES@ -name Makefile \
                     46:         -exec grep static {} /dev/null \; | cut -d: -f1); \
1.3       bertrand   47:    do \
1.7       bertrand   48:        echo -n Checking $$i; \
1.31      bertrand   49:        TMP=tmp.ncurses; \
1.7       bertrand   50:        if [ -n "$$(grep static $$i | grep dynamic)" ]; then \
                     51:            awk \
                     52:            '{ \
                     53:                if (index($$0, "-static") != 0 && index($$0, "-dynamic") != 0) \
                     54:                { \
                     55:                    for(j = 1; j <= NF; j++) \
                     56:                    { \
                     57:                        if (index($$j, "-static") == 0) \
                     58:                        { \
                     59:                            printf("%s ", $$j); \
                     60:                        } \
                     61:                    } \
                     62:                    printf("\n"); \
                     63:                } \
                     64:                else \
                     65:                { \
                     66:                    print; \
                     67:                } \
                     68:            }' $$i > $$TMP; \
1.17      bertrand   69:            mv -f $$TMP $$i; \
1.7       bertrand   70:            echo -n " (fixed)"; \
                     71:        else \
                     72:            echo -n " (nothing to do)"; \
1.17      bertrand   73:            rm -f $$TMP; \
1.7       bertrand   74:        fi; \
                     75:        echo .; \
1.2       bertrand   76:    done;
1.22      bertrand   77:    for i in tools/@NCURSES@/test/Makefile; \
                     78:    do \
                     79:        echo -n Checking $$i; \
1.31      bertrand   80:        TMP=tmp.ncurses_test; \
1.22      bertrand   81:        awk \
                     82:            '/^TEST_ARGS/ \
1.32      bertrand   83:                { printf("TEST_ARGS = ../lib/@LIB_PREFIX@form.a \
                     84:                        ../lib/@LIB_PREFIX@menu.a "); \
                     85:                printf("../lib/@LIB_PREFIX@panel.a \
                     86:                        ../lib/@LIB_PREFIX@ncurses.a\n"); } \
1.22      bertrand   87:            ! /^TEST_ARGS/ \
                     88:                { print; }' tools/@NCURSES@/test/Makefile > $$TMP; \
                     89:        mv -f $$TMP $$i; \
                     90:        echo .; \
                     91:    done;
1.14      bertrand   92:    if [ @OS@ = "OS2" ]; then \
1.35      bertrand   93:        TMP=tmp.ncurses_test_os2; \
1.11      bertrand   94:        awk \
1.14      bertrand   95:            '/^CXX_AR[ \t]/ \
                     96:                { printf("CXX_AR = $(AR)\n"); } \
                     97:            ! /^CXX_AR[ \t]/ \
                     98:                { print; }' \
                     99:            $(top_builddir)/tools/@NCURSES@/c++/Makefile | \
                    100:        awk \
                    101:            '/^CXX_ARFLAGS[ \t]/ \
                    102:                { printf("CXX_ARFLAGS = $(ARFLAGS)\n"); } \
                    103:            ! /^CXX_ARFLAGS[ \t]/ \
                    104:                { print; }' | \
                    105:        awk \
                    106:            '/^CXX[ \t]/ \
                    107:                { printf("CXX = g++\n"); } \
                    108:            ! /^CXX[ \t]/ \
                    109:                { print; }' > $$TMP; \
1.17      bertrand  110:        mv -f $$TMP $(top_builddir)/tools/@NCURSES@/c++/Makefile; \
1.14      bertrand  111:    fi;
                    112:    $(MAKE) -C $(top_builddir)/tools/@NCURSES@ $(AM_MAKEFLAGS)
1.3       bertrand  113: 
1.34      bertrand  114: $(top_builddir)/tools/@READLINE@/libreadline.a \
                    115:        $(top_builddir)/tools/@READLINE@/libhistory.a:
1.14      bertrand  116:    $(MAKE) -C $(top_builddir)/tools/@READLINE@ $(AM_MAKEFLAGS)
1.3       bertrand  117: 
1.32      bertrand  118: $(top_builddir)/tools/@GSL@/.libs/@LIB_PREFIX@gsl.a:
1.17      bertrand  119: # Quick and dirty hack pour avaliser le remplacement de ${1 + "$@"}
                    120: # dans ltmain.sh et propager les modifications dans le script libtool.
                    121:    if [ @OS@ = "OS2" ]; then \
                    122:        (cd $(top_builddir)/tools/@GSL@ && configure --disable-shared;); \
1.16      bertrand  123:    fi
                    124:    $(MAKE) -C $(top_builddir)/tools/@GSL@ $(AM_MAKEFLAGS)
1.3       bertrand  125: 
1.32      bertrand  126: $(top_builddir)/tools/@ICONV@/lib/.libs/@LIB_PREFIX@iconv.a:
1.4       bertrand  127: # La dépendance est faite par rpliconv.
1.14      bertrand  128:    if [ @OS@ = "OS2" ]; then \
1.31      bertrand  129:        TMP=tmp.libiconv; \
1.14      bertrand  130:        awk '! /^[ \t]cd po/ { print; }' \
                    131:                $(top_builddir)/tools/@ICONV@/Makefile > $$TMP; \
1.17      bertrand  132:        mv -f $$TMP $(top_builddir)/tools/@ICONV@/Makefile; \
1.14      bertrand  133:        $(MAKE) -C $(top_builddir)/tools/@ICONV@ $(AM_MAKEFLAGS) all; \
                    134:    else \
                    135:        $(MAKE) -C $(top_builddir)/tools/@ICONV@ $(AM_MAKEFLAGS) all; \
                    136:    fi
1.3       bertrand  137: 
                    138: $(top_builddir)/lapack/lapack/liblapack.a:
                    139:    (cd $(top_builddir)/lapack/lapack && $(MAKE) $(AM_MAKEFLAGS))
                    140: 
                    141: $(top_builddir)/lapack/blas/libblas.a:
                    142:    (cd $(top_builddir)/lapack/blas && $(MAKE) $(AM_MAKEFLAGS))
                    143: 
1.12      bertrand  144: $(top_builddir)/rpliconv/rpliconv$(EXEEXT): \
1.32      bertrand  145:        $(top_builddir)/tools/@ICONV@/lib/.libs/@LIB_PREFIX@iconv.a
1.14      bertrand  146:    $(MAKE) -C $(top_builddir)/rpliconv $(AM_MAKEFLAGS)
1.3       bertrand  147: 
1.20      bertrand  148: $(top_builddir)/rplawk/rplawk$(EXEEXT):
                    149:    $(MAKE) -C $(top_builddir)/rplawk $(AM_MAKEFLAGS)
                    150: 
1.14      bertrand  151: $(top_builddir)/tools/@FILE@/src/rplfile$(EXEEXT) \
1.3       bertrand  152:        $(top_builddir)/tools/@FILE@/magic/magic.mgc: \
1.32      bertrand  153:        $(top_builddir)/tools/@ICONV@/lib/.libs/@LIB_PREFIX@iconv.a
1.31      bertrand  154:    TMP=tmp.rplfile; \
1.7       bertrand  155:    awk \
                    156:    '{ \
                    157:        if (index($$0, "LDFLAGS") == 1) \
                    158:        { \
                    159:            if (index($$0, "-static") == 0) \
                    160:            { \
1.49      bertrand  161:                printf("%s -static @ABI@\n", $$0); \
1.7       bertrand  162:            } \
                    163:            else \
                    164:            { \
                    165:                print; \
                    166:            } \
                    167:        } \
                    168:        else \
                    169:        { \
1.46      bertrand  170:            if (index($$0, "CFLAGS") == 1) \
                    171:            { \
1.49      bertrand  172:                printf("CFLAGS = -O2 -g @ABI@\n"); \
1.46      bertrand  173:            } \
                    174:            else \
                    175:            { \
                    176:                print; \
                    177:            } \
1.7       bertrand  178:        } \
                    179:    }' tools/@FILE@/src/Makefile > $$TMP; \
1.17      bertrand  180:    mv -f $$TMP tools/@FILE@/src/Makefile
1.14      bertrand  181:    $(MAKE) -C $(top_builddir)/tools/@FILE@ $(AM_MAKEFLAGS)
1.21      bertrand  182:    $(CC) -o $(top_builddir)/tools/@FILE@/src/rplfile$(EXEEXT) \
1.49      bertrand  183:            @CFLAGS@ $(top_builddir)/tools/@FILE@/src/*.o \
1.21      bertrand  184:            $(shell grep '^LIBS =' $(top_builddir)/tools/@FILE@/Makefile | \
                    185:            cut -d= -f2) $(LDFLAGS)
1.3       bertrand  186: 
1.32      bertrand  187: $(top_builddir)/tools/@SQLITE@/.libs/@LIB_PREFIX@sqlite3.a:
1.14      bertrand  188:    $(MAKE) -C $(top_builddir)/tools/@SQLITE@ $(AM_MAKEFLAGS)
1.5       bertrand  189: 
1.32      bertrand  190: $(top_builddir)/tools/@OPENSSL@/@LIB_PREFIX@crypto.a \
                    191:        $(top_builddir)/tools/@OPENSSL@/@LIB_PREFIX@ssl.a:
1.49      bertrand  192:    if [ ! -f $(top_builddir)/tools/@OPENSSL@/@LIB_PREFIX@crypto.a \
                    193:            -o ! -f $(top_builddir)/tools/@OPENSSL@/@LIB_PREFIX@ssl.a \
                    194:            -o ! -f $(top_builddir)/tools/@OPENSSL@/tests_success ]; then \
1.47      bertrand  195:        if [ @OS@ = "OS2" ]; then \
                    196:            (cd $(top_builddir)/tools/@OPENSSL@ && \
                    197:                    sed -e '1,$$s/-m486/-mtune=i586 -DOPENSSL_USE_IPV6=0/g' \
                    198:                    OS2-EMX.mak | \
                    199:                    sed -e '1,$$s/-DBN_ASM/-UBN_ASM/g' | \
                    200:                    sed -e '1,$$s/-DMD5_ASM/-UMD5_ASM/g' | \
                    201:                    sed -e '1,$$s/-DSHA1_ASM/-USHA1_ASM/g' | \
                    202:                    sed -e '1,$$s/-DOPENSSL_BN_ASM_PART_WORDS/-UOPENSSL_BN_ASM_PART_ASM/g' \
                    203:                    > OS2-EMX.mak2; \
                    204:                    $(MAKE) -j1 -f OS2-EMX.mak2 $(AM_MAKEFLAGS); \
                    205:                    touch tests_success); \
                    206:        else \
                    207:            (cd $(top_builddir)/tools/@OPENSSL@ && \
                    208:                    $(MAKE) -j1 $(AM_MAKEFLAGS); \
                    209:                    touch tests_success); \
                    210:        fi \
1.14      bertrand  211:    fi
1.5       bertrand  212: 
1.38      bertrand  213: $(top_builddir)/rplsums/rplmd5sum$(EXEEXT) \
                    214:        $(top_builddir)/rplsums/rplsha1sum$(EXEEXT): \
1.32      bertrand  215:        $(top_builddir)/tools/@OPENSSL@/@LIB_PREFIX@crypto.a
1.14      bertrand  216:    $(MAKE) -C $(top_builddir)/rplsums $(AM_MAKEFLAGS)
1.5       bertrand  217: 
1.12      bertrand  218: $(top_builddir)/tools/@GPP@/src/gpp$(EXEEXT):
1.14      bertrand  219:    $(MAKE) -C $(top_builddir)/tools/@GPP@ $(AM_MAKEFLAGS)
1.5       bertrand  220: 
1.40      bertrand  221: $(top_builddir)/tools/@UNITS@/units$(EXEEXT):
1.47      bertrand  222:    if [ $$subdir = @UNITS@ -a @OS@ = OpenBSD ]; then \
                    223:        TMP=tmp.units; \
                    224:        sed -e 's/^DEFS = -DUNITSFILE/DEFS = -Dmalloc=malloc -DUNITSFILE/g' \
                    225:                @UNITS@/Makefile > $$TMP; \
                    226:        mv -f $$TMP @UNITS@/Makefile; \
                    227:    fi; \
1.56      bertrand  228:    cp -f $(srcdir)/tools/@UNITS@/units_cur $(top_builddir)/tools/@UNITS@
1.40      bertrand  229:    $(MAKE) -C $(top_builddir)/tools/@UNITS@ $(AM_MAKEFLAGS)
                    230: 
1.12      bertrand  231: .NOTPARALLEL: $(top_builddir)/tools/@FILE@/src/rplfile$(EXEEXT) \
1.4       bertrand  232:        $(top_builddir)/tools/@FILE@/magic/magic.mgc
                    233: 
1.32      bertrand  234: .NOTPARALLEL: $(top_builddir)/tools/@READLINE@/@LIB_PREFIX@readline.a \
                    235:        $(top_builddir)/tools/@READLINE@/@LIB_PREFIX@history.a
1.4       bertrand  236: 
1.32      bertrand  237: .NOTPARALLEL: $(top_builddir)/tools/@OPENSSL@/@LIB_PREFIX@crypto.a \
                    238:        $(top_builddir)/tools/@OPENSSL@/@LIB_PREFIX@ssl.a
1.5       bertrand  239: 
1.38      bertrand  240: .NOTPARALLEL: $(top_builddir)/rplsums/rplmd5sum$(EXEEXT) \
                    241:        $(top_builddir)/rplsums/rplsha1sum$(EXEEXT)
1.5       bertrand  242: 
1.13      bertrand  243: install-strip:
                    244:    $(MAKE) $(AM_MAKEFLAGS) install
                    245: 
1.28      bertrand  246: $(top_builddir)/rplcas/lib/librplcas.a: \
1.32      bertrand  247:        $(top_builddir)/tools/@GSL@/.libs/@LIB_PREFIX@gsl.a
1.27      bertrand  248:    $(MAKE) -C $(top_builddir)/rplcas $(AM_MAKEFLAGS)
                    249: 
1.40      bertrand  250: $(top_builddir)/tools/@OPENMOTIF@/lib/Xm/.libs/libXm.a: \
                    251:        $(top_builddir)/tools/@LIBXPM@/src/.libs/libXpm.a
1.41      bertrand  252:    $(MAKE) -C $(top_builddir)/tools/@OPENMOTIF@ -j1
1.40      bertrand  253: 
                    254: $(top_builddir)/tools/@LIBXPM@/src/.libs/libXpm.a:
                    255:    $(MAKE) -C $(top_builddir)/tools/@LIBXPM@ $(AM_MAKEFLAGS)
                    256: 
                    257: $(top_builddir)/tools/@SIGSEGV@/src/.libs/@LIB_PREFIX@sigsegv.a:
                    258:    $(MAKE) -C $(top_builddir)/tools/@SIGSEGV@ $(AM_MAKEFLAGS)
                    259: 
1.60    ! bertrand  260: all-rpl: $(top_builddir)/tools/@NCURSES@/lib/@LIB_PREFIX@ncurses.a \
1.32      bertrand  261:        $(top_builddir)/tools/@READLINE@/@LIB_PREFIX@readline.a \
                    262:        $(top_builddir)/tools/@READLINE@/@LIB_PREFIX@history.a \
                    263:        $(top_builddir)/tools/@GSL@/.libs/@LIB_PREFIX@gsl.a \
                    264:        $(top_builddir)/tools/@SQLITE@/.libs/@LIB_PREFIX@sqlite3.a \
                    265:        $(top_builddir)/tools/@OPENSSL@/@LIB_PREFIX@crypto.a \
1.5       bertrand  266:        $(top_builddir)/tools/@OPENSSL@/libssl.a \
1.3       bertrand  267:        $(top_builddir)/lapack/lapack/liblapack.a \
                    268:        $(top_builddir)/lapack/blas/libblas.a \
1.12      bertrand  269:        $(top_builddir)/rpliconv/rpliconv$(EXEEXT) \
1.20      bertrand  270:        $(top_builddir)/rplawk/rplawk$(EXEEXT) \
1.12      bertrand  271:        $(top_builddir)/tools/@FILE@/src/rplfile$(EXEEXT) \
1.5       bertrand  272:        $(top_builddir)/tools/@FILE@/magic/magic.mgc \
1.33      bertrand  273:        $(top_builddir)/rplsums/rplmd5sum$(EXEEXT) \
                    274:        $(top_builddir)/rplsums/rplsha1sum$(EXEEXT) \
1.27      bertrand  275:        $(top_builddir)/tools/@GPP@/src/gpp$(EXEEXT) \
1.39      bertrand  276:        $(top_builddir)/tools/@UNITS@/units$(EXEEXT) \
1.40      bertrand  277:        $(top_builddir)/tools/@SIGSEGV@/src/.libs/@LIB_PREFIX@sigsegv.a \
1.38      bertrand  278:        @LIBRPLCAS@ @LIBMOTIF@
1.4       bertrand  279: # Cette règle n'est là que pour forcer la compilation de Gnuplot.
1.14      bertrand  280:    $(MAKE) -C $(top_builddir)/tools $(AM_MAKEFLAGS)
                    281:    $(MAKE) -C $(top_builddir)/rpltags $(AM_MAKEFLAGS)
                    282:    $(MAKE) -C $(top_builddir)/src $(AM_MAKEFLAGS)
1.42      bertrand  283: 
1.44      bertrand  284: debian: all
1.51      bertrand  285:    $(MAKE) -C $(top_builddir)/src $(AM_MAKEFLAGS) librpl
1.42      bertrand  286:    $(MKDIR_P) $(top_builddir)/debian/$(prefix)/bin
1.44      bertrand  287:    for i in $(top_builddir)/src/rpl$(EXEEXT) $(top_builddir)/scripts/rplcc \
                    288:            $(top_builddir)/scripts/rpllink $(top_builddir)/scripts/mkrplso \
                    289:            $(top_builddir)/tools/@FILE@/src/rplfile$(EXEEXT) \
                    290:            $(top_builddir)/rpltags/rpltags$(EXEEXT) \
                    291:            $(top_builddir)/rplawk/rplawk$(EXEEXT) \
                    292:            $(top_builddir)/rpliconv/rpliconv$(EXEEXT); \
                    293:    do cp -f $$i $(top_builddir)/debian/$(prefix)/bin; \
1.42      bertrand  294:    done
1.44      bertrand  295:    cp $(top_builddir)/tools/@UNITS@/units$(EXEEXT) \
                    296:            $(top_builddir)/debian/$(prefix)/bin/rplconvert$(EXEEXT)
                    297:    cp $(top_builddir)/tools/@GPP@/src/gpp$(EXEEXT) \
                    298:            $(top_builddir)/debian/$(prefix)/bin/rplpp$(EXEEXT)
1.42      bertrand  299:    $(MKDIR_P) $(top_builddir)/debian/$(prefix)/include
1.44      bertrand  300:    for i in $(srcdir)/src/librpl.h $(top_builddir)/rplconfig.h \
                    301:        $(srcdir)/src/rpl.h $(srcdir)/src/rpltypes.h \
                    302:            $(top_builddir)/src/librplprototypes.h \
                    303:            $(srcdir)/src/rplexternals.h $(top_builddir)/src/rpl.inc; \
                    304:    do cp -f $$i $(top_builddir)/debian/$(prefix)/include; \
1.42      bertrand  305:    done
                    306:    $(MKDIR_P) $(top_builddir)/debian/$(prefix)/lib
1.44      bertrand  307:    cp -f $(top_builddir)/src/librpl.a $(top_builddir)/debian/$(prefix)/lib
1.42      bertrand  308:    for j in man/man1 man/fr_FR/man1; \
                    309:    do \
                    310:        $(MKDIR_P) $(top_builddir)/debian/$(prefix)/$$j; \
1.44      bertrand  311:        for i in $(top_builddir)/$$j/gpp.1 $(top_builddir)/$$j/mkrplso.1 \
                    312:                $(top_builddir)/$$j/rpl.1 $(top_builddir)/$$j/rplcc.1 \
                    313:                $(top_builddir)/$$j/rpllink.1 $(top_builddir)/$$j/rplpp.1 \
                    314:                $(top_builddir)/$$j/rpltags.1; \
1.42      bertrand  315:        do \
1.44      bertrand  316:            if [ -f $$i ]; then \
                    317:                cp -f $$i $(top_builddir)/debian/$(prefix)/$$j; \
1.42      bertrand  318:            fi; \
                    319:        done; \
                    320:    done
                    321:    $(MKDIR_P) $(top_builddir)/debian/$(prefix)/share
1.44      bertrand  322:    cp -f $(top_builddir)/tools/@FILE@/magic/magic.mgc \
1.50      bertrand  323:            $(top_builddir)/debian/$(prefix)/share/rplfiles.mgc
1.59      bertrand  324:    cp -f $(srcdir)/tools/@UNITS@/definitions.units \
                    325:            $(top_builddir)/debian/$(prefix)/share/rplunits.tmp
                    326:    sed 's/^!include currency.units//g' \
                    327:            $(top_builddir)/debian/$(prefix)/share/rplunits.tmp \
                    328:            > $(top_builddir)/debian/$(prefix)/share/rplunits
                    329:    rm -f $(top_builddir)/debian/$(prefix)/share/rplunits.tmp
1.45      bertrand  330:    if [ -e $(top_builddir)/tools/@GNUPLOT@/src/gnuplot$(EXEEXT) ]; then \
                    331:        if [ -e $(prefix)/bin/gnuplot$(EXEEXT) ]; then \
                    332:            mv -f $(prefix)/bin/gnuplot$(EXEEXT) \
                    333:                    $(prefix)/bin/gnuplot$(EXEEXT).orig; \
                    334:            mv -f $(prefix)/share/gnuplot $(prefix)/share/gnuplot.orig; \
                    335:            mv -f $(prefix)/libexec/gnuplot $(prefix)/libexec/gnuplot.orig; \
                    336:            (cd $(top_builddir)/tools/@GNUPLOT@ && $(MAKE) install); \
                    337:            cp -f $(prefix)/bin/gnuplot$(EXEEXT) \
                    338:                    $(top_builddir)/debian/$(prefix)/bin; \
                    339:            cp -af $(prefix)/share/gnuplot \
                    340:                    $(top_builddir)/debian/$(prefix)/share; \
                    341:            $(MKDIR_P) $(top_builddir)/debian/$(prefix)/libexec; \
                    342:            cp -af $(prefix)/libexec/gnuplot \
                    343:                    $(top_builddir)/debian/$(prefix)/libexec; \
                    344:            (cd $(top_builddir)/tools/@GNUPLOT@ && $(MAKE) uninstall); \
                    345:            rm -f $(prefix)/bin/gnuplot$(EXEEXT); \
                    346:            rm -rf $(prefix)/share/gnuplot; \
                    347:            rm -rf $(prefix)/libexec/gnuplot; \
                    348:            mv $(prefix)/bin/gnuplot$(EXEEXT).orig \
                    349:                    $(prefix)/bin/gnuplot$(EXEEXT); \
                    350:            mv -f $(prefix)/share/gnuplot.orig $(prefix)/share/gnuplot; \
                    351:            mv -f $(prefix)/libexec/gnuplot.orig $(prefix)/libexec/gnuplot; \
                    352:        else \
                    353:            (cd $(top_builddir)/tools/@GNUPLOT@ && $(MAKE) install); \
                    354:            cp -f $(prefix)/bin/gnuplot$(EXEEXT) \
                    355:                    $(top_builddir)/debian/$(prefix)/bin; \
                    356:            cp -af $(prefix)/share/gnuplot \
                    357:                    $(top_builddir)/debian/$(prefix)/share; \
                    358:            $(MKDIR_P) $(top_builddir)/debian/$(prefix)/libexec; \
                    359:            cp -af $(prefix)/libexec/gnuplot \
                    360:                    $(top_builddir)/debian/$(prefix)/libexec; \
                    361:            (cd $(top_builddir)/tools/@GNUPLOT@ && $(MAKE) uninstall); \
                    362:        fi; \
                    363:    fi
1.42      bertrand  364:    $(MKDIR_P) $(top_builddir)/debian/DEBIAN
                    365:    cp -f $(top_builddir)/DEBIAN/* $(top_builddir)/debian/DEBIAN
                    366:    (cd  $(top_builddir) && dpkg-deb --build debian debian)

CVSweb interface <joel.bertrand@systella.fr>