11.41Swiz#	$NetBSD: Makefile,v 1.41 2024/08/23 09:06:37 wiz Exp $
21.10Smikel#	@(#)Makefile	8.1 (Berkeley) 6/8/93
31.1Scgd
41.37SchristosFILES=	NetBSD.el acronyms acronyms-o acronyms.comp airport ascii \
51.29Swiz	birthtoken bsd-family-tree \
61.41Swiz	country domains dot.clang-format operator \
71.20Sfvdl	eqnchar flowers indent.pro inter.phone language man.template \
81.35Sjruoho	mdoc.template na.phone na.postal style zipcodes
91.11SmycroftFILESDIR=${BINDIR}/misc
101.13Shubertf
111.37Schristos# TO AVOID INSTALLING THE POTENTIALLY OFFENSIVE FORTUNES, RUN 'make' with
121.37Schristos# "INSTALL_OFFENSIVE_FORTUNES=NO", or set "INSTALL_OFFENSIVE_FORTUNES=NO"
131.37Schristos# IN bsd.own.mk OR /etc/mk.conf.
141.37Schristos
151.37SchristosINSTALL_OFFENSIVE_FORTUNES?=    YES
161.37Schristos.if (${INSTALL_OFFENSIVE_FORTUNES} == "YES")
171.37SchristosTYPE=	real
181.37Schristos.else
191.37SchristosTYPE=	fake
201.37Schristos.endif
211.37SchristosCLEANFILES+=acronyms-o
221.38SmrgFILESBUILD_acronyms-o=yes
231.13Shubertf
241.13Shubertf# According to iana@ISI.EDU, the URL below is the authoritative list
251.13Shubertf# distributed by the ISO 3166 Maintenance Agency.
261.39SnikitaDOMAIN_URL=	https://www.iana.org/domains/root/db 
271.13Shubertfupdate-domains:
281.13Shubertf	( \
291.31Shubertf	  echo '# $$''NetBSD''$$' ;  \
301.31Shubertf	  echo '# ISO 3166 country codes, from ${DOMAIN_URL}' ; \
311.31Shubertf	  echo '# Last update:' `date` ; \
321.31Shubertf	  echo '#' ; \
331.31Shubertf	  ftp -o - ${DOMAIN_URL} \
341.39Snikita	  | ${TOOL_SED} -f ${.CURDIR}/nanpa.sed \
351.39Snikita	  | ${TOOL_SED} '/^\..*/!d' \
361.40Snikita	  | ${TOOL_SED} 's/"/\"/g' \
371.39Snikita	  | ${TOOL_AWK} 'BEGIN{FS=":"} {print $$1 " " $$3}' \
381.24Sjhawk	 ) > domains ; \
391.26Sjhawk
401.26Sjhawkupdate-na.phone:
411.32Sapb	< /dev/null ${TOOL_AWK} -f nanpa.awk > na.phone
421.1Scgd
431.34Schristosupdate-country:
441.34Schristos	${.CURDIR}/make.country > country
451.34Schristos
461.37Schristos
471.1Scgd.include <bsd.prog.mk>
481.37Schristos
491.37Schristosacronyms-o: acronyms-o.${TYPE}
501.37Schristos	@cp ${.ALLSRC} ${.TARGET}
51