--- rpl/Makefile.am 2013/03/21 14:13:55 1.67 +++ rpl/Makefile.am 2016/09/26 22:16:44 1.75 @@ -9,10 +9,11 @@ EXTRA_DIST = LIMITATIONS Licence_CeCILL_ vim/syntax/rpl.vim examples/obele.rpl examples/appel.tar.gz \ examples/external.tar.gz DEBIAN/control.in \ rplcas/@GMP@.tar.gz rplcas/@MPFR@.tar.gz rplcas/@NTL@.tar.gz \ - rplcas/@COCOA@.tar.gz rplcas/@PARI@.tar.gz rplcas/@GIAC@.tar.gz + rplcas/@COCOA@.tar.gz rplcas/@PARI@.tar.gz rplcas/@GIAC@.tar.gz \ + rplcas/@MPFI@.tar.gz all: - @if [ x$(shell $(MAKE) -v | grep "^GNU Make") != x ]; then \ + @if [ x"$(shell $(MAKE) -v | grep '^GNU Make')" = x ]; then \ echo; \ echo MAKE=$(MAKE); \ echo "Please use GNU Make !"; \ @@ -24,6 +25,7 @@ all: licences: cp -f $(top_builddir)/HEADER $(srcdir) $(MAKE) -C src $@ + $(MAKE) -C rplsums $@ purge: for i in @NCURSES@ @READLINE@ @UNITS@ @GSL@ @GPP@ @GNUPLOT_COMPILATION@ \ @@ -32,7 +34,7 @@ purge: rm -rf $(srcdir)/tools/$$i; \ rm -rf $(top_builddir)/tools/$$i; \ done; - for i in @GMP@ @MPFR@ @NTL@ @COCOA@ @PARI@ @GIAC@; \ + for i in @GMP@ @MPFR@ @NTL@ @COCOA@ @PARI@ @GIAC@ @FLTK@; \ do \ if [ -d $(srcdir)/rplcas/$$i ]; then \ rm -rf $(srcdir)/rplcas/$$i; \ @@ -47,7 +49,8 @@ purge: rm -rf $(top_builddir)/rplcas/$$i; \ fi; \ done; - rm -f $(top_builddir)/tools/openmotif.lib + test -f $(top_builddir)/tools/openmotif.lib && \ + rm -f $(top_builddir)/tools/openmotif.lib rm -rf $(top_builddir)/tools/@OPENSSL@ rm -rf $(top_builddir)/tools/@ZLIB@ @@ -231,17 +234,13 @@ $(top_builddir)/rplsums/rplmd5sum$(EXEEX $(top_builddir)/tools/@GPP@/src/gpp$(EXEEXT): $(MAKE) -C $(top_builddir)/tools/@GPP@ $(AM_MAKEFLAGS) -$(top_builddir)/tools/@UNITS@/units$(EXEEXT) \ - $(top_builddir)/tools/@UNITS@/units_cur: +$(top_builddir)/tools/@UNITS@/units$(EXEEXT): if [ @OS@ = OpenBSD ]; then \ TMP=tmp.units; \ sed -e 's/^DEFS = -DUNITSFILE/DEFS = -Dmalloc=malloc -DUNITSFILE/g' \ @UNITS@/Makefile > $$TMP; \ mv -f $$TMP @UNITS@/Makefile; \ fi; \ - if [ x$(srcdir) != x$(top_builddir) ]; then \ - cp -f $(srcdir)/tools/@UNITS@/units_cur $(top_builddir)/tools/@UNITS@; \ - fi $(MAKE) -C $(top_builddir)/tools/@UNITS@ $(AM_MAKEFLAGS) .NOTPARALLEL: $(top_builddir)/tools/@FILE@/src/rplfile$(EXEEXT) \