Annotation of rpl/Makefile.am, revision 1.62

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

CVSweb interface <joel.bertrand@systella.fr>