From 224ef8747d0e7558e3c157964963906dc16e65d2 Mon Sep 17 00:00:00 2001 From: hjp Date: Fri, 18 Feb 2011 12:06:51 +0000 Subject: [PATCH] GNUmake*.sh --- grouptools/GNUmakefile | 5 +++++ grouptools/GNUmakerules.sh | 3 +++ grouptools/GNUmakevars.sh | 5 +++++ 3 files changed, 13 insertions(+) create mode 100644 grouptools/GNUmakerules.sh create mode 100644 grouptools/GNUmakevars.sh diff --git a/grouptools/GNUmakefile b/grouptools/GNUmakefile index 2f4c690..dc76e68 100644 --- a/grouptools/GNUmakefile +++ b/grouptools/GNUmakefile @@ -28,4 +28,9 @@ configure: $(CONFDIR)/start $(CONFDIR)/perl $(CONFDIR)/finish endif +GNUmakevars: GNUmakevars.sh + sh ./$^ > $@ +GNUmakerules: GNUmakerules.sh + sh ./$^ > $@ + include GNUmakerules diff --git a/grouptools/GNUmakerules.sh b/grouptools/GNUmakerules.sh new file mode 100644 index 0000000..e523b37 --- /dev/null +++ b/grouptools/GNUmakerules.sh @@ -0,0 +1,3 @@ +#!/bin/sh +echo "\$(BINDIR)/%: %" +echo -e "\tcp \$^ \$@" diff --git a/grouptools/GNUmakevars.sh b/grouptools/GNUmakevars.sh new file mode 100644 index 0000000..a7de4ae --- /dev/null +++ b/grouptools/GNUmakevars.sh @@ -0,0 +1,5 @@ +#!/bin/sh +prefix=${prefix:-/usr/local} +echo "BINDIR=$prefix/bin" +echo +echo "all:"