1 1.41 wiz # $NetBSD: Makefile,v 1.41 2024/08/23 09:06:37 wiz Exp $ 2 1.10 mikel # @(#)Makefile 8.1 (Berkeley) 6/8/93 3 1.1 cgd 4 1.37 christos FILES= NetBSD.el acronyms acronyms-o acronyms.comp airport ascii \ 5 1.29 wiz birthtoken bsd-family-tree \ 6 1.41 wiz country domains dot.clang-format operator \ 7 1.20 fvdl eqnchar flowers indent.pro inter.phone language man.template \ 8 1.35 jruoho mdoc.template na.phone na.postal style zipcodes 9 1.11 mycroft FILESDIR=${BINDIR}/misc 10 1.13 hubertf 11 1.37 christos # TO AVOID INSTALLING THE POTENTIALLY OFFENSIVE FORTUNES, RUN 'make' with 12 1.37 christos # "INSTALL_OFFENSIVE_FORTUNES=NO", or set "INSTALL_OFFENSIVE_FORTUNES=NO" 13 1.37 christos # IN bsd.own.mk OR /etc/mk.conf. 14 1.37 christos 15 1.37 christos INSTALL_OFFENSIVE_FORTUNES?= YES 16 1.37 christos .if (${INSTALL_OFFENSIVE_FORTUNES} == "YES") 17 1.37 christos TYPE= real 18 1.37 christos .else 19 1.37 christos TYPE= fake 20 1.37 christos .endif 21 1.37 christos CLEANFILES+=acronyms-o 22 1.38 mrg FILESBUILD_acronyms-o=yes 23 1.13 hubertf 24 1.13 hubertf # According to iana (at] ISI.EDU, the URL below is the authoritative list 25 1.13 hubertf # distributed by the ISO 3166 Maintenance Agency. 26 1.39 nikita DOMAIN_URL= https://www.iana.org/domains/root/db 27 1.13 hubertf update-domains: 28 1.13 hubertf ( \ 29 1.31 hubertf echo '# $$''NetBSD''$$' ; \ 30 1.31 hubertf echo '# ISO 3166 country codes, from ${DOMAIN_URL}' ; \ 31 1.31 hubertf echo '# Last update:' `date` ; \ 32 1.31 hubertf echo '#' ; \ 33 1.31 hubertf ftp -o - ${DOMAIN_URL} \ 34 1.39 nikita | ${TOOL_SED} -f ${.CURDIR}/nanpa.sed \ 35 1.39 nikita | ${TOOL_SED} '/^\..*/!d' \ 36 1.40 nikita | ${TOOL_SED} 's/"/\"/g' \ 37 1.39 nikita | ${TOOL_AWK} 'BEGIN{FS=":"} {print $$1 " " $$3}' \ 38 1.24 jhawk ) > domains ; \ 39 1.26 jhawk 40 1.26 jhawk update-na.phone: 41 1.32 apb < /dev/null ${TOOL_AWK} -f nanpa.awk > na.phone 42 1.1 cgd 43 1.34 christos update-country: 44 1.34 christos ${.CURDIR}/make.country > country 45 1.34 christos 46 1.37 christos 47 1.1 cgd .include <bsd.prog.mk> 48 1.37 christos 49 1.37 christos acronyms-o: acronyms-o.${TYPE} 50 1.37 christos @cp ${.ALLSRC} ${.TARGET} 51