Math Processor Unit Library

libmpu – library of arithmetic functions for integer, real, and complex numbers of increased digit capacity

16 Commits   0 Branches   2 Tags
868b2b66 (kx 2024-12-20 16:11:07 +0300  1) # Special Makefile rules for English message catalogs with quotation marks.
868b2b66 (kx 2024-12-20 16:11:07 +0300  2) #
868b2b66 (kx 2024-12-20 16:11:07 +0300  3) # Copyright (C) 2001-2017 Free Software Foundation, Inc.
868b2b66 (kx 2024-12-20 16:11:07 +0300  4) # This file, Rules-quot, and its auxiliary files (listed under
868b2b66 (kx 2024-12-20 16:11:07 +0300  5) # DISTFILES.common.extra1) are free software; the Free Software Foundation
868b2b66 (kx 2024-12-20 16:11:07 +0300  6) # gives unlimited permission to use, copy, distribute, and modify them.
868b2b66 (kx 2024-12-20 16:11:07 +0300  7) 
868b2b66 (kx 2024-12-20 16:11:07 +0300  8) DISTFILES.common.extra1 = quot.sed boldquot.sed en@quot.header en@boldquot.header insert-header.sin Rules-quot
868b2b66 (kx 2024-12-20 16:11:07 +0300  9) 
868b2b66 (kx 2024-12-20 16:11:07 +0300 10) .SUFFIXES: .insert-header .po-update-en
868b2b66 (kx 2024-12-20 16:11:07 +0300 11) 
868b2b66 (kx 2024-12-20 16:11:07 +0300 12) en@quot.po-create:
868b2b66 (kx 2024-12-20 16:11:07 +0300 13) 	$(MAKE) en@quot.po-update
868b2b66 (kx 2024-12-20 16:11:07 +0300 14) en@boldquot.po-create:
868b2b66 (kx 2024-12-20 16:11:07 +0300 15) 	$(MAKE) en@boldquot.po-update
868b2b66 (kx 2024-12-20 16:11:07 +0300 16) 
868b2b66 (kx 2024-12-20 16:11:07 +0300 17) en@quot.po-update: en@quot.po-update-en
868b2b66 (kx 2024-12-20 16:11:07 +0300 18) en@boldquot.po-update: en@boldquot.po-update-en
868b2b66 (kx 2024-12-20 16:11:07 +0300 19) 
868b2b66 (kx 2024-12-20 16:11:07 +0300 20) .insert-header.po-update-en:
868b2b66 (kx 2024-12-20 16:11:07 +0300 21) 	@lang=`echo $@ | sed -e 's/\.po-update-en$$//'`; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 22) 	if test "$(PACKAGE)" = "gettext-tools" && test "$(CROSS_COMPILING)" != "yes"; then PATH=`pwd`/../src:$$PATH; GETTEXTLIBDIR=`cd $(top_srcdir)/src && pwd`; export GETTEXTLIBDIR; fi; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 23) 	tmpdir=`pwd`; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 24) 	echo "$$lang:"; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 25) 	ll=`echo $$lang | sed -e 's/@.*//'`; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 26) 	LC_ALL=C; export LC_ALL; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 27) 	cd $(srcdir); \
868b2b66 (kx 2024-12-20 16:11:07 +0300 28) 	if $(MSGINIT) $(MSGINIT_OPTIONS) -i $(DOMAIN).pot --no-translator -l $$lang -o - 2>/dev/null \
868b2b66 (kx 2024-12-20 16:11:07 +0300 29) 	   | $(SED) -f $$tmpdir/$$lang.insert-header | $(MSGCONV) -t UTF-8 | \
868b2b66 (kx 2024-12-20 16:11:07 +0300 30) 	   { case `$(MSGFILTER) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \
868b2b66 (kx 2024-12-20 16:11:07 +0300 31) 	     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-8] | 0.1[0-8].*) \
868b2b66 (kx 2024-12-20 16:11:07 +0300 32) 	       $(MSGFILTER) $(SED) -f `echo $$lang | sed -e 's/.*@//'`.sed \
868b2b66 (kx 2024-12-20 16:11:07 +0300 33) 	       ;; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 34) 	     *) \
868b2b66 (kx 2024-12-20 16:11:07 +0300 35) 	       $(MSGFILTER) `echo $$lang | sed -e 's/.*@//'` \
868b2b66 (kx 2024-12-20 16:11:07 +0300 36) 	       ;; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 37) 	     esac } 2>/dev/null > $$tmpdir/$$lang.new.po \
868b2b66 (kx 2024-12-20 16:11:07 +0300 38) 	     ; then \
868b2b66 (kx 2024-12-20 16:11:07 +0300 39) 	  if cmp $$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \
868b2b66 (kx 2024-12-20 16:11:07 +0300 40) 	    rm -f $$tmpdir/$$lang.new.po; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 41) 	  else \
868b2b66 (kx 2024-12-20 16:11:07 +0300 42) 	    if mv -f $$tmpdir/$$lang.new.po $$lang.po; then \
868b2b66 (kx 2024-12-20 16:11:07 +0300 43) 	      :; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 44) 	    else \
868b2b66 (kx 2024-12-20 16:11:07 +0300 45) 	      echo "creation of $$lang.po failed: cannot move $$tmpdir/$$lang.new.po to $$lang.po" 1>&2; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 46) 	      exit 1; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 47) 	    fi; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 48) 	  fi; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 49) 	else \
868b2b66 (kx 2024-12-20 16:11:07 +0300 50) 	  echo "creation of $$lang.po failed!" 1>&2; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 51) 	  rm -f $$tmpdir/$$lang.new.po; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 52) 	fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 53) 
868b2b66 (kx 2024-12-20 16:11:07 +0300 54) en@quot.insert-header: insert-header.sin
868b2b66 (kx 2024-12-20 16:11:07 +0300 55) 	sed -e '/^#/d' -e 's/HEADER/en@quot.header/g' $(srcdir)/insert-header.sin > en@quot.insert-header
868b2b66 (kx 2024-12-20 16:11:07 +0300 56) 
868b2b66 (kx 2024-12-20 16:11:07 +0300 57) en@boldquot.insert-header: insert-header.sin
868b2b66 (kx 2024-12-20 16:11:07 +0300 58) 	sed -e '/^#/d' -e 's/HEADER/en@boldquot.header/g' $(srcdir)/insert-header.sin > en@boldquot.insert-header
868b2b66 (kx 2024-12-20 16:11:07 +0300 59) 
868b2b66 (kx 2024-12-20 16:11:07 +0300 60) mostlyclean: mostlyclean-quot
868b2b66 (kx 2024-12-20 16:11:07 +0300 61) mostlyclean-quot:
868b2b66 (kx 2024-12-20 16:11:07 +0300 62) 	rm -f *.insert-header