1*0a6a1f1dSLionel Sambuc# $NetBSD: Makefile,v 1.38 2015/04/23 02:01:12 mrg Exp $ 25737b690SBen Gras# @(#)Makefile 8.1 (Berkeley) 6/8/93 35737b690SBen Gras 4*0a6a1f1dSLionel SambucFILES= NetBSD.el acronyms acronyms-o acronyms.comp airport ascii \ 55737b690SBen Gras birthtoken bsd-family-tree \ 65737b690SBen Gras country domains operator \ 75737b690SBen Gras eqnchar flowers indent.pro inter.phone language man.template \ 85737b690SBen Gras mdoc.template na.phone na.postal style zipcodes 95737b690SBen GrasFILESDIR=${BINDIR}/misc 105737b690SBen Gras 11*0a6a1f1dSLionel Sambuc# TO AVOID INSTALLING THE POTENTIALLY OFFENSIVE FORTUNES, RUN 'make' with 12*0a6a1f1dSLionel Sambuc# "INSTALL_OFFENSIVE_FORTUNES=NO", or set "INSTALL_OFFENSIVE_FORTUNES=NO" 13*0a6a1f1dSLionel Sambuc# IN bsd.own.mk OR /etc/mk.conf. 14*0a6a1f1dSLionel Sambuc 15*0a6a1f1dSLionel SambucINSTALL_OFFENSIVE_FORTUNES?= YES 16*0a6a1f1dSLionel Sambuc.if (${INSTALL_OFFENSIVE_FORTUNES} == "YES") 17*0a6a1f1dSLionel SambucTYPE= real 18*0a6a1f1dSLionel Sambuc.else 19*0a6a1f1dSLionel SambucTYPE= fake 20*0a6a1f1dSLionel Sambuc.endif 21*0a6a1f1dSLionel SambucCLEANFILES+=acronyms-o 22*0a6a1f1dSLionel SambucFILESBUILD_acronyms-o=yes 235737b690SBen Gras 245737b690SBen Gras# According to iana@ISI.EDU, the URL below is the authoritative list 255737b690SBen Gras# distributed by the ISO 3166 Maintenance Agency. 265737b690SBen GrasDOMAIN_URL= http://www.iana.org/root-whois/index.html 275737b690SBen Grasupdate-domains: 285737b690SBen Gras ( \ 295737b690SBen Gras echo '# $$''NetBSD''$$' ; \ 305737b690SBen Gras echo '# ISO 3166 country codes, from ${DOMAIN_URL}' ; \ 315737b690SBen Gras echo '# Last update:' `date` ; \ 325737b690SBen Gras echo '#' ; \ 335737b690SBen Gras ftp -o - ${DOMAIN_URL} \ 345737b690SBen Gras | ${TOOL_SED} -n -f ${.CURDIR}/domains.sed \ 355737b690SBen Gras ) > domains ; \ 365737b690SBen Gras 375737b690SBen Grasupdate-na.phone: 385737b690SBen Gras < /dev/null ${TOOL_AWK} -f nanpa.awk > na.phone 395737b690SBen Gras 405737b690SBen Grasupdate-country: 415737b690SBen Gras ${.CURDIR}/make.country > country 425737b690SBen Gras 43*0a6a1f1dSLionel Sambuc 445737b690SBen Gras.include <bsd.prog.mk> 45*0a6a1f1dSLionel Sambuc 46*0a6a1f1dSLionel Sambucacronyms-o: acronyms-o.${TYPE} 47*0a6a1f1dSLionel Sambuc @cp ${.ALLSRC} ${.TARGET} 48