From 0fa224e0014c2129a0fca1bcf98003935fa7dd69 Mon Sep 17 00:00:00 2001 From: hjp Date: Wed, 12 Oct 2011 09:21:54 +0000 Subject: [PATCH] Added GNUmakerules.sh GNUmakevars.sh --- setperm/GNUmakefile | 5 +++++ setperm/GNUmakerules.sh | 3 +++ setperm/GNUmakevars.sh | 5 +++++ 3 files changed, 13 insertions(+) create mode 100755 setperm/GNUmakerules.sh create mode 100755 setperm/GNUmakevars.sh diff --git a/setperm/GNUmakefile b/setperm/GNUmakefile index 1f2afa0..d474ae1 100644 --- a/setperm/GNUmakefile +++ b/setperm/GNUmakefile @@ -4,4 +4,9 @@ clean: rm setperm install: $(BINDIR)/setperm +GNUmakevars: GNUmakevars.sh + sh ./$^ > $@ +GNUmakerules: GNUmakerules.sh + sh ./$^ > $@ + include GNUmakerules diff --git a/setperm/GNUmakerules.sh b/setperm/GNUmakerules.sh new file mode 100755 index 0000000..e523b37 --- /dev/null +++ b/setperm/GNUmakerules.sh @@ -0,0 +1,3 @@ +#!/bin/sh +echo "\$(BINDIR)/%: %" +echo -e "\tcp \$^ \$@" diff --git a/setperm/GNUmakevars.sh b/setperm/GNUmakevars.sh new file mode 100755 index 0000000..a7de4ae --- /dev/null +++ b/setperm/GNUmakevars.sh @@ -0,0 +1,5 @@ +#!/bin/sh +prefix=${prefix:-/usr/local} +echo "BINDIR=$prefix/bin" +echo +echo "all:"