From 750ef31e0cd597aa5c4ce95df0db16a96f558928 Mon Sep 17 00:00:00 2001 From: hjp Date: Mon, 17 May 2004 17:19:43 +0000 Subject: [PATCH] Added build scripts for GNUmakerules and GNUmakevars. --- dns/GNUmakefile | 8 +++++++- dns/GNUmakerules.sh | 3 +++ dns/GNUmakevars.sh | 5 +++++ 3 files changed, 15 insertions(+), 1 deletion(-) create mode 100755 dns/GNUmakerules.sh create mode 100755 dns/GNUmakevars.sh 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:"