Annotation of rpl/Makefile.am, revision 1.65

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

CVSweb interface <joel.bertrand@systella.fr>