Annotation of rpl/Makefile.am, revision 1.75

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

CVSweb interface <joel.bertrand@systella.fr>