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:"