Added build scripts for GNUmakerules and GNUmakevars.

This commit is contained in:
hjp 2004-05-17 17:19:43 +00:00
parent f3f6f7006e
commit 750ef31e0c
3 changed files with 15 additions and 1 deletions

View File

@ -1,5 +1,4 @@
include GNUmakevars include GNUmakevars
include GNUmakerules
all: gethostbyname fqdn all: gethostbyname fqdn
install: \ install: \
@ -29,4 +28,11 @@ axfr:
cp $< $@ cp $< $@
chmod +x $@ chmod +x $@
GNUmakevars: GNUmakevars.sh
sh ./$^ > $@
GNUmakerules: GNUmakerules.sh
sh ./$^ > $@
include GNUmakerules
-include *.d -include *.d

3
dns/GNUmakerules.sh Executable file
View File

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

5
dns/GNUmakevars.sh Executable file
View File

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