1 # $NetBSD: Makefile,v 1.13 1999/01/05 01:53:09 hubertf Exp $ 2 # @(#)Makefile 8.1 (Berkeley) 6/8/93 3 4 FILES= airport ascii birthtoken domains eqnchar flowers getopt \ 5 inter.phone man.template mdoc.template na.phone operator style \ 6 zipcodes 7 FILESDIR=${BINDIR}/misc 8 NOOBJ= noobj 9 10 11 # According to iana (at] ISI.EDU, the URL below is the authoritative list 12 # distributed by the ISO 3166 Maintenance Agency. 13 update-domains: 14 ftp -o /tmp/domains.$$$$ http://www.iana.org/country-codes.txt ; \ 15 ( \ 16 echo '# $$NetBSD: Makefile,v 1.13 1999/01/05 01:53:09 hubertf Exp $$' ; \ 17 echo '# ISO 3166 country codes, from http://www.iana.org/country-codes.txt' ; \ 18 echo '# '`grep ^Latest /tmp/domains.$$$$` ; \ 19 echo '#' ; \ 20 awk </tmp/domains.$$$$ '{ if ( $$2 ~ /[A-Z][A-Z]/ && $$4 ~ /[0-9][0-9][0-9]/ ) { x=tolower($$2 " "$$1); print x } };' \ 21 ) >domains ; \ 22 rm /tmp/domains.$$$$ 23 24 25 .include <bsd.prog.mk> 26