Annotation of rpl/Makefile.am, revision 1.74

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

CVSweb interface <joel.bertrand@systella.fr>