Annotation of rpl/Makefile.am, revision 1.61

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.61    ! bertrand  222:    if [ @OS@ = OpenBSD ]; then \
1.47      bertrand  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.61    ! bertrand  228:    if [ x$(srcdir) != x$(top_builddir) ]; then \
        !           229:        cp -f $(srcdir)/tools/@UNITS@/units_cur $(top_builddir)/tools/@UNITS@; \
        !           230:    fi
1.40      bertrand  231:    $(MAKE) -C $(top_builddir)/tools/@UNITS@ $(AM_MAKEFLAGS)
                    232: 
1.12      bertrand  233: .NOTPARALLEL: $(top_builddir)/tools/@FILE@/src/rplfile$(EXEEXT) \
1.4       bertrand  234:        $(top_builddir)/tools/@FILE@/magic/magic.mgc
                    235: 
1.32      bertrand  236: .NOTPARALLEL: $(top_builddir)/tools/@READLINE@/@LIB_PREFIX@readline.a \
                    237:        $(top_builddir)/tools/@READLINE@/@LIB_PREFIX@history.a
1.4       bertrand  238: 
1.32      bertrand  239: .NOTPARALLEL: $(top_builddir)/tools/@OPENSSL@/@LIB_PREFIX@crypto.a \
                    240:        $(top_builddir)/tools/@OPENSSL@/@LIB_PREFIX@ssl.a
1.5       bertrand  241: 
1.38      bertrand  242: .NOTPARALLEL: $(top_builddir)/rplsums/rplmd5sum$(EXEEXT) \
                    243:        $(top_builddir)/rplsums/rplsha1sum$(EXEEXT)
1.5       bertrand  244: 
1.13      bertrand  245: install-strip:
                    246:    $(MAKE) $(AM_MAKEFLAGS) install
                    247: 
1.28      bertrand  248: $(top_builddir)/rplcas/lib/librplcas.a: \
1.32      bertrand  249:        $(top_builddir)/tools/@GSL@/.libs/@LIB_PREFIX@gsl.a
1.27      bertrand  250:    $(MAKE) -C $(top_builddir)/rplcas $(AM_MAKEFLAGS)
                    251: 
1.40      bertrand  252: $(top_builddir)/tools/@OPENMOTIF@/lib/Xm/.libs/libXm.a: \
                    253:        $(top_builddir)/tools/@LIBXPM@/src/.libs/libXpm.a
1.41      bertrand  254:    $(MAKE) -C $(top_builddir)/tools/@OPENMOTIF@ -j1
1.40      bertrand  255: 
                    256: $(top_builddir)/tools/@LIBXPM@/src/.libs/libXpm.a:
                    257:    $(MAKE) -C $(top_builddir)/tools/@LIBXPM@ $(AM_MAKEFLAGS)
                    258: 
                    259: $(top_builddir)/tools/@SIGSEGV@/src/.libs/@LIB_PREFIX@sigsegv.a:
                    260:    $(MAKE) -C $(top_builddir)/tools/@SIGSEGV@ $(AM_MAKEFLAGS)
                    261: 
1.60      bertrand  262: all-rpl: $(top_builddir)/tools/@NCURSES@/lib/@LIB_PREFIX@ncurses.a \
1.32      bertrand  263:        $(top_builddir)/tools/@READLINE@/@LIB_PREFIX@readline.a \
                    264:        $(top_builddir)/tools/@READLINE@/@LIB_PREFIX@history.a \
                    265:        $(top_builddir)/tools/@GSL@/.libs/@LIB_PREFIX@gsl.a \
                    266:        $(top_builddir)/tools/@SQLITE@/.libs/@LIB_PREFIX@sqlite3.a \
                    267:        $(top_builddir)/tools/@OPENSSL@/@LIB_PREFIX@crypto.a \
1.5       bertrand  268:        $(top_builddir)/tools/@OPENSSL@/libssl.a \
1.3       bertrand  269:        $(top_builddir)/lapack/lapack/liblapack.a \
                    270:        $(top_builddir)/lapack/blas/libblas.a \
1.12      bertrand  271:        $(top_builddir)/rpliconv/rpliconv$(EXEEXT) \
1.20      bertrand  272:        $(top_builddir)/rplawk/rplawk$(EXEEXT) \
1.12      bertrand  273:        $(top_builddir)/tools/@FILE@/src/rplfile$(EXEEXT) \
1.5       bertrand  274:        $(top_builddir)/tools/@FILE@/magic/magic.mgc \
1.33      bertrand  275:        $(top_builddir)/rplsums/rplmd5sum$(EXEEXT) \
                    276:        $(top_builddir)/rplsums/rplsha1sum$(EXEEXT) \
1.27      bertrand  277:        $(top_builddir)/tools/@GPP@/src/gpp$(EXEEXT) \
1.39      bertrand  278:        $(top_builddir)/tools/@UNITS@/units$(EXEEXT) \
1.40      bertrand  279:        $(top_builddir)/tools/@SIGSEGV@/src/.libs/@LIB_PREFIX@sigsegv.a \
1.38      bertrand  280:        @LIBRPLCAS@ @LIBMOTIF@
1.4       bertrand  281: # Cette règle n'est là que pour forcer la compilation de Gnuplot.
1.14      bertrand  282:    $(MAKE) -C $(top_builddir)/tools $(AM_MAKEFLAGS)
                    283:    $(MAKE) -C $(top_builddir)/rpltags $(AM_MAKEFLAGS)
                    284:    $(MAKE) -C $(top_builddir)/src $(AM_MAKEFLAGS)
1.42      bertrand  285: 
1.44      bertrand  286: debian: all
1.51      bertrand  287:    $(MAKE) -C $(top_builddir)/src $(AM_MAKEFLAGS) librpl
1.42      bertrand  288:    $(MKDIR_P) $(top_builddir)/debian/$(prefix)/bin
1.44      bertrand  289:    for i in $(top_builddir)/src/rpl$(EXEEXT) $(top_builddir)/scripts/rplcc \
                    290:            $(top_builddir)/scripts/rpllink $(top_builddir)/scripts/mkrplso \
                    291:            $(top_builddir)/tools/@FILE@/src/rplfile$(EXEEXT) \
                    292:            $(top_builddir)/rpltags/rpltags$(EXEEXT) \
                    293:            $(top_builddir)/rplawk/rplawk$(EXEEXT) \
                    294:            $(top_builddir)/rpliconv/rpliconv$(EXEEXT); \
                    295:    do cp -f $$i $(top_builddir)/debian/$(prefix)/bin; \
1.42      bertrand  296:    done
1.44      bertrand  297:    cp $(top_builddir)/tools/@UNITS@/units$(EXEEXT) \
                    298:            $(top_builddir)/debian/$(prefix)/bin/rplconvert$(EXEEXT)
                    299:    cp $(top_builddir)/tools/@GPP@/src/gpp$(EXEEXT) \
                    300:            $(top_builddir)/debian/$(prefix)/bin/rplpp$(EXEEXT)
1.42      bertrand  301:    $(MKDIR_P) $(top_builddir)/debian/$(prefix)/include
1.44      bertrand  302:    for i in $(srcdir)/src/librpl.h $(top_builddir)/rplconfig.h \
                    303:        $(srcdir)/src/rpl.h $(srcdir)/src/rpltypes.h \
                    304:            $(top_builddir)/src/librplprototypes.h \
                    305:            $(srcdir)/src/rplexternals.h $(top_builddir)/src/rpl.inc; \
                    306:    do cp -f $$i $(top_builddir)/debian/$(prefix)/include; \
1.42      bertrand  307:    done
                    308:    $(MKDIR_P) $(top_builddir)/debian/$(prefix)/lib
1.44      bertrand  309:    cp -f $(top_builddir)/src/librpl.a $(top_builddir)/debian/$(prefix)/lib
1.42      bertrand  310:    for j in man/man1 man/fr_FR/man1; \
                    311:    do \
                    312:        $(MKDIR_P) $(top_builddir)/debian/$(prefix)/$$j; \
1.44      bertrand  313:        for i in $(top_builddir)/$$j/gpp.1 $(top_builddir)/$$j/mkrplso.1 \
                    314:                $(top_builddir)/$$j/rpl.1 $(top_builddir)/$$j/rplcc.1 \
                    315:                $(top_builddir)/$$j/rpllink.1 $(top_builddir)/$$j/rplpp.1 \
                    316:                $(top_builddir)/$$j/rpltags.1; \
1.42      bertrand  317:        do \
1.44      bertrand  318:            if [ -f $$i ]; then \
                    319:                cp -f $$i $(top_builddir)/debian/$(prefix)/$$j; \
1.42      bertrand  320:            fi; \
                    321:        done; \
                    322:    done
                    323:    $(MKDIR_P) $(top_builddir)/debian/$(prefix)/share
1.44      bertrand  324:    cp -f $(top_builddir)/tools/@FILE@/magic/magic.mgc \
1.50      bertrand  325:            $(top_builddir)/debian/$(prefix)/share/rplfiles.mgc
1.59      bertrand  326:    cp -f $(srcdir)/tools/@UNITS@/definitions.units \
                    327:            $(top_builddir)/debian/$(prefix)/share/rplunits.tmp
                    328:    sed 's/^!include currency.units//g' \
                    329:            $(top_builddir)/debian/$(prefix)/share/rplunits.tmp \
                    330:            > $(top_builddir)/debian/$(prefix)/share/rplunits
                    331:    rm -f $(top_builddir)/debian/$(prefix)/share/rplunits.tmp
1.45      bertrand  332:    if [ -e $(top_builddir)/tools/@GNUPLOT@/src/gnuplot$(EXEEXT) ]; then \
                    333:        if [ -e $(prefix)/bin/gnuplot$(EXEEXT) ]; then \
                    334:            mv -f $(prefix)/bin/gnuplot$(EXEEXT) \
                    335:                    $(prefix)/bin/gnuplot$(EXEEXT).orig; \
                    336:            mv -f $(prefix)/share/gnuplot $(prefix)/share/gnuplot.orig; \
                    337:            mv -f $(prefix)/libexec/gnuplot $(prefix)/libexec/gnuplot.orig; \
                    338:            (cd $(top_builddir)/tools/@GNUPLOT@ && $(MAKE) install); \
                    339:            cp -f $(prefix)/bin/gnuplot$(EXEEXT) \
                    340:                    $(top_builddir)/debian/$(prefix)/bin; \
                    341:            cp -af $(prefix)/share/gnuplot \
                    342:                    $(top_builddir)/debian/$(prefix)/share; \
                    343:            $(MKDIR_P) $(top_builddir)/debian/$(prefix)/libexec; \
                    344:            cp -af $(prefix)/libexec/gnuplot \
                    345:                    $(top_builddir)/debian/$(prefix)/libexec; \
                    346:            (cd $(top_builddir)/tools/@GNUPLOT@ && $(MAKE) uninstall); \
                    347:            rm -f $(prefix)/bin/gnuplot$(EXEEXT); \
                    348:            rm -rf $(prefix)/share/gnuplot; \
                    349:            rm -rf $(prefix)/libexec/gnuplot; \
                    350:            mv $(prefix)/bin/gnuplot$(EXEEXT).orig \
                    351:                    $(prefix)/bin/gnuplot$(EXEEXT); \
                    352:            mv -f $(prefix)/share/gnuplot.orig $(prefix)/share/gnuplot; \
                    353:            mv -f $(prefix)/libexec/gnuplot.orig $(prefix)/libexec/gnuplot; \
                    354:        else \
                    355:            (cd $(top_builddir)/tools/@GNUPLOT@ && $(MAKE) install); \
                    356:            cp -f $(prefix)/bin/gnuplot$(EXEEXT) \
                    357:                    $(top_builddir)/debian/$(prefix)/bin; \
                    358:            cp -af $(prefix)/share/gnuplot \
                    359:                    $(top_builddir)/debian/$(prefix)/share; \
                    360:            $(MKDIR_P) $(top_builddir)/debian/$(prefix)/libexec; \
                    361:            cp -af $(prefix)/libexec/gnuplot \
                    362:                    $(top_builddir)/debian/$(prefix)/libexec; \
                    363:            (cd $(top_builddir)/tools/@GNUPLOT@ && $(MAKE) uninstall); \
                    364:        fi; \
                    365:    fi
1.42      bertrand  366:    $(MKDIR_P) $(top_builddir)/debian/DEBIAN
                    367:    cp -f $(top_builddir)/DEBIAN/* $(top_builddir)/debian/DEBIAN
                    368:    (cd  $(top_builddir) && dpkg-deb --build debian debian)

CVSweb interface <joel.bertrand@systella.fr>