Makefile revision 1.38
11.38Smrg#	$NetBSD: Makefile,v 1.38 2015/04/23 02:01:12 mrg 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.36Sjruoho	country domains 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.31ShubertfDOMAIN_URL=	http://www.iana.org/root-whois/index.html 
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.33Sapb	  | ${TOOL_SED} -n -f ${.CURDIR}/domains.sed \
351.24Sjhawk	 ) > domains ; \
361.26Sjhawk
371.26Sjhawkupdate-na.phone:
381.32Sapb	< /dev/null ${TOOL_AWK} -f nanpa.awk > na.phone
391.1Scgd
401.34Schristosupdate-country:
411.34Schristos	${.CURDIR}/make.country > country
421.34Schristos
431.37Schristos
441.1Scgd.include <bsd.prog.mk>
451.37Schristos
461.37Schristosacronyms-o: acronyms-o.${TYPE}
471.37Schristos	@cp ${.ALLSRC} ${.TARGET}
48