Annotation of rpl/Makefile.am, revision 1.59

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

CVSweb interface <joel.bertrand@systella.fr>