Added GNUmakerules.sh GNUmakevars.sh

This commit is contained in:
hjp 2011-10-12 09:21:54 +00:00
parent c5acc52b65
commit 0fa224e001
3 changed files with 13 additions and 0 deletions

View File

@ -4,4 +4,9 @@ clean:
rm setperm
install: $(BINDIR)/setperm
GNUmakevars: GNUmakevars.sh
sh ./$^ > $@
GNUmakerules: GNUmakerules.sh
sh ./$^ > $@
include GNUmakerules

3
setperm/GNUmakerules.sh Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
echo "\$(BINDIR)/%: %"
echo -e "\tcp \$^ \$@"

5
setperm/GNUmakevars.sh Executable file
View File

@ -0,0 +1,5 @@
#!/bin/sh
prefix=${prefix:-/usr/local}
echo "BINDIR=$prefix/bin"
echo
echo "all:"