From 89e5b8a3ff998c1f06bf95ca8283e2497e3abaac Mon Sep 17 00:00:00 2001 From: hjp Date: Tue, 5 Jul 2016 19:57:27 +0000 Subject: [PATCH] GNUmakerules, GNUmakevars --- ieeefloat/GNUmakefile | 2 +- ieeefloat/GNUmakerules.sh | 5 +++++ ieeefloat/GNUmakevars.sh | 15 +++++++++++++++ 3 files changed, 21 insertions(+), 1 deletion(-) create mode 100755 ieeefloat/GNUmakerules.sh create mode 100755 ieeefloat/GNUmakevars.sh diff --git a/ieeefloat/GNUmakefile b/ieeefloat/GNUmakefile index bd96d54..ecc05db 100644 --- a/ieeefloat/GNUmakefile +++ b/ieeefloat/GNUmakefile @@ -7,7 +7,7 @@ clean: rm -f *.bak *.o core ieeefloat distclean: clean - rm -f *.d + rm -f *.d GNUmakerules GNUmakevars ieeefloat: ieeefloat.o diff --git a/ieeefloat/GNUmakerules.sh b/ieeefloat/GNUmakerules.sh new file mode 100755 index 0000000..952629f --- /dev/null +++ b/ieeefloat/GNUmakerules.sh @@ -0,0 +1,5 @@ +#!/bin/sh +echo "\$(BINDIR)/%: %" +echo -e "\tcp \$^ \$@" +echo "\$(MAN1DIR)/%: %" +echo -e "\tcp \$^ \$@" diff --git a/ieeefloat/GNUmakevars.sh b/ieeefloat/GNUmakevars.sh new file mode 100755 index 0000000..1443f83 --- /dev/null +++ b/ieeefloat/GNUmakevars.sh @@ -0,0 +1,15 @@ +#!/bin/sh +prefix=${prefix:-/usr/local} +echo "BINDIR=$prefix/bin" + +for i in "$prefix/share/man/man1" "$prefix/man/man1" +do + if [ -d "$i" -a -w "$i" ] + then + echo "MAN1DIR=$i" + break; + fi +done + +echo +echo "all:"