diff --git a/dns/GNUmakefile b/dns/GNUmakefile index d9ffb12..8997acc 100644 --- a/dns/GNUmakefile +++ b/dns/GNUmakefile @@ -1,5 +1,4 @@ include GNUmakevars -include GNUmakerules all: gethostbyname fqdn install: \ @@ -29,4 +28,11 @@ axfr: cp $< $@ chmod +x $@ +GNUmakevars: GNUmakevars.sh + sh ./$^ > $@ +GNUmakerules: GNUmakerules.sh + sh ./$^ > $@ + +include GNUmakerules + -include *.d diff --git a/dns/GNUmakerules.sh b/dns/GNUmakerules.sh new file mode 100755 index 0000000..e523b37 --- /dev/null +++ b/dns/GNUmakerules.sh @@ -0,0 +1,3 @@ +#!/bin/sh +echo "\$(BINDIR)/%: %" +echo -e "\tcp \$^ \$@" diff --git a/dns/GNUmakevars.sh b/dns/GNUmakevars.sh new file mode 100755 index 0000000..a7de4ae --- /dev/null +++ b/dns/GNUmakevars.sh @@ -0,0 +1,5 @@ +#!/bin/sh +prefix=${prefix:-/usr/local} +echo "BINDIR=$prefix/bin" +echo +echo "all:"